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

Modify segment metadata call #14250

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

cypherean
Copy link
Contributor

@cypherean cypherean commented Oct 17, 2024

Fixes #13990
The fetch segment metadata call for a table makes one call per segment, instead we can have one call per server

@codecov-commenter
Copy link

codecov-commenter commented Oct 17, 2024

Codecov Report

Attention: Patch coverage is 6.25000% with 60 lines in your changes missing coverage. Please review.

Project coverage is 63.91%. Comparing base (59551e4) to head (4b2ac8a).
Report is 1549 commits behind head on master.

Files with missing lines Patch % Lines
...che/pinot/server/api/resources/TablesResource.java 11.76% 27 Missing and 3 partials ⚠️
...che/pinot/controller/util/TableMetadataReader.java 0.00% 14 Missing ⚠️
...t/controller/util/ServerSegmentMetadataReader.java 0.00% 13 Missing ⚠️
...ler/api/resources/PinotSegmentRestletResource.java 0.00% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master   #14250      +/-   ##
============================================
+ Coverage     61.75%   63.91%   +2.16%     
- Complexity      207     1608    +1401     
============================================
  Files          2436     2704     +268     
  Lines        133233   150979   +17746     
  Branches      20636    23330    +2694     
============================================
+ Hits          82274    96496   +14222     
- Misses        44911    47261    +2350     
- Partials       6048     7222    +1174     
Flag Coverage Δ
custom-integration1 100.00% <ø> (+99.99%) ⬆️
integration 100.00% <ø> (+99.99%) ⬆️
integration1 100.00% <ø> (+99.99%) ⬆️
integration2 ?
java-11 63.81% <6.25%> (+2.10%) ⬆️
java-21 63.80% <6.25%> (+2.17%) ⬆️
skip-bytebuffers-false 63.88% <6.25%> (+2.14%) ⬆️
skip-bytebuffers-true 63.72% <6.25%> (+35.99%) ⬆️
temurin 63.91% <6.25%> (+2.16%) ⬆️
unittests 63.90% <6.25%> (+2.16%) ⬆️
unittests1 56.34% <ø> (+9.44%) ⬆️
unittests2 34.17% <6.25%> (+6.44%) ⬆️

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.

@cypherean cypherean force-pushed the shreyaa/segment_metadata branch 4 times, most recently from 3306b07 to c489750 Compare October 24, 2024 13:11
@cypherean cypherean force-pushed the shreyaa/segment_metadata branch 5 times, most recently from 9eec4d1 to a0d35af Compare October 29, 2024 19:57
@cypherean cypherean marked this pull request as ready for review November 1, 2024 09:49
@cypherean cypherean changed the title [WIP - do not review] Modify segment metadata call Modify segment metadata call Nov 1, 2024
@Produces(MediaType.APPLICATION_JSON)
@ApiOperation(value = "Get the server metadata for all table segments",
notes = "Get the server metadata for all table segments")
public String getServerSegmentsMetadata(
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the difference between this one and the original one?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It makes one call per server whereas segments/{tableName}/metadata makes 1 call per segment to fetch the metadata

Copy link
Contributor

Choose a reason for hiding this comment

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

Am I mis-reading? Seems this one is exactly the same as the deprecated one

@cypherean cypherean force-pushed the shreyaa/segment_metadata branch from 3a416fc to 4b2ac8a Compare January 8, 2025 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pinot Controller leader re-election not triggered
3 participants