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

Refine PeerServerSegmentFinder #12933

Merged
merged 1 commit into from
Apr 16, 2024

Conversation

Jackie-Jiang
Copy link
Contributor

Separated from #12886 for easier review

  • Refine and simplify the logic of PeerServerSegmentFinder
  • Fix the bug of using netty port when admin port is not explicitly configured

onlineServerURIs);
return !onlineServerURIs.isEmpty();
});
} catch (AttemptsExceededException e) {
LOGGER.error("Failed to find ONLINE servers for segment: {}, table: {}", segmentName, tableNameWithType);
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: "Failed to ... in {} attempts", ..., MAX_NUM_ATTEMPTS) to make error msg a bit more clear

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@codecov-commenter
Copy link

codecov-commenter commented Apr 15, 2024

Codecov Report

Attention: Patch coverage is 59.57447% with 19 lines in your changes are missing coverage. Please review.

Project coverage is 35.16%. Comparing base (59551e4) to head (dc470e5).
Report is 306 commits behind head on master.

Files Patch % Lines
...pache/pinot/core/util/PeerServerSegmentFinder.java 70.83% 5 Missing and 2 partials ⚠️
...ata/manager/realtime/RealtimeTableDataManager.java 0.00% 7 Missing ⚠️
...pinot/common/utils/fetcher/HttpSegmentFetcher.java 60.00% 2 Missing ⚠️
.../core/realtime/PinotLLCRealtimeSegmentManager.java 0.00% 1 Missing ⚠️
.../pinot/core/data/manager/BaseTableDataManager.java 80.00% 0 Missing and 1 partial ⚠️
...spi/utils/retry/ExponentialBackoffRetryPolicy.java 66.66% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##             master   #12933       +/-   ##
=============================================
- Coverage     61.75%   35.16%   -26.59%     
+ Complexity      207        6      -201     
=============================================
  Files          2436     2428        -8     
  Lines        133233   132837      -396     
  Branches      20636    20568       -68     
=============================================
- Hits          82274    46713    -35561     
- Misses        44911    82740    +37829     
+ Partials       6048     3384     -2664     
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 35.11% <59.57%> (-26.60%) ⬇️
java-21 35.04% <59.57%> (-26.59%) ⬇️
skip-bytebuffers-false 35.15% <59.57%> (-26.60%) ⬇️
skip-bytebuffers-true 35.00% <59.57%> (+7.27%) ⬆️
temurin 35.16% <59.57%> (-26.59%) ⬇️
unittests 46.72% <60.86%> (-15.03%) ⬇️
unittests1 46.72% <60.86%> (-0.17%) ⬇️
unittests2 ?

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.

@Jackie-Jiang Jackie-Jiang merged commit ec452a4 into apache:master Apr 16, 2024
19 of 20 checks passed
@Jackie-Jiang Jackie-Jiang deleted the peer_server_segment_finder branch April 16, 2024 00:02
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.

3 participants