Skip to content
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

Merged

Conversation

shounakmk219
Copy link
Collaborator

Make TableSizeReader and StorageQuotaChecker available as service to avoid passing multiple services across code

@shounakmk219 shounakmk219 force-pushed the storage-quota-checker-refactor branch from ab7b402 to c883e3e Compare July 8, 2024 19:11
@shounakmk219 shounakmk219 force-pushed the storage-quota-checker-refactor branch from 9ddfa3b to af7ab43 Compare July 8, 2024 19:16
super("SegmentStatusChecker", config.getStatusCheckerFrequencyInSeconds(),
config.getStatusCheckerInitialDelayInSeconds(), pinotHelixResourceManager, leadControllerManager,
controllerMetrics);

_waitForPushTimeSeconds = config.getStatusCheckerWaitForPushTimeInSeconds();
_tableSizeReader =
new TableSizeReader(executorService, new PoolingHttpClientConnectionManager(), _controllerMetrics,
Copy link
Collaborator Author

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-commenter
Copy link

codecov-commenter commented Jul 8, 2024

Codecov Report

Attention: Patch coverage is 84.61538% with 2 lines in your changes missing coverage. Please review.

Project coverage is 62.01%. Comparing base (59551e4) to head (af7ab43).
Report is 727 commits behind head on master.

Files Patch % Lines
.../pinot/controller/api/resources/DebugResource.java 0.00% 1 Missing ⚠️
...not/controller/validation/StorageQuotaChecker.java 80.00% 0 Missing and 1 partial ⚠️
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     
Flag Coverage Δ
custom-integration1 <0.01% <0.00%> (-0.01%) ⬇️
integration <0.01% <0.00%> (-0.01%) ⬇️
integration1 <0.01% <0.00%> (-0.01%) ⬇️
integration2 0.00% <0.00%> (ø)
java-11 27.65% <84.61%> (-34.05%) ⬇️
java-21 62.01% <84.61%> (+0.38%) ⬆️
skip-bytebuffers-false 61.97% <84.61%> (+0.22%) ⬆️
skip-bytebuffers-true 61.98% <84.61%> (+34.25%) ⬆️
temurin 62.01% <84.61%> (+0.26%) ⬆️
unittests 62.01% <84.61%> (+0.26%) ⬆️
unittests1 46.52% <ø> (-0.37%) ⬇️
unittests2 27.68% <84.61%> (-0.05%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@Jackie-Jiang Jackie-Jiang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done!

@Jackie-Jiang Jackie-Jiang merged commit 0b25381 into apache:master Jul 8, 2024
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants