-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make TableSizeReader and StorageQuotaChecker available as service #13560
Make TableSizeReader and StorageQuotaChecker available as service #13560
Conversation
ab7b402
to
c883e3e
Compare
9ddfa3b
to
af7ab43
Compare
super("SegmentStatusChecker", config.getStatusCheckerFrequencyInSeconds(), | ||
config.getStatusCheckerInitialDelayInSeconds(), pinotHelixResourceManager, leadControllerManager, | ||
controllerMetrics); | ||
|
||
_waitForPushTimeSeconds = config.getStatusCheckerWaitForPushTimeInSeconds(); | ||
_tableSizeReader = | ||
new TableSizeReader(executorService, new PoolingHttpClientConnectionManager(), _controllerMetrics, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it ok to use the shared connectionManager here?
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #13560 +/- ##
============================================
+ Coverage 61.75% 62.01% +0.26%
+ Complexity 207 198 -9
============================================
Files 2436 2558 +122
Lines 133233 140903 +7670
Branches 20636 21864 +1228
============================================
+ Hits 82274 87382 +5108
- Misses 44911 46889 +1978
- Partials 6048 6632 +584
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done!
Make
TableSizeReader
andStorageQuotaChecker
available as service to avoid passing multiple services across code