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

Fix segment completion FSM on uploaded segment #15062

Merged
merged 1 commit into from
Feb 14, 2025

Conversation

Jackie-Jiang
Copy link
Contributor

Fix #14786

When a recently committed segment got replaced by a minion task (e.g. upsert compaction), the segment status is set to UPLOADED. Segment completion FSM should handle UPLOADED segment similar to DONE segment, and treat it as committed.

@codecov-commenter
Copy link

codecov-commenter commented Feb 13, 2025

Codecov Report

Attention: Patch coverage is 80.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 63.34%. Comparing base (59551e4) to head (2abc436).
Report is 1715 commits behind head on master.

Files with missing lines Patch % Lines
...ix/core/realtime/BlockingSegmentCompletionFSM.java 80.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master   #15062      +/-   ##
============================================
+ Coverage     61.75%   63.34%   +1.59%     
- Complexity      207     1481    +1274     
============================================
  Files          2436     2732     +296     
  Lines        133233   153596   +20363     
  Branches      20636    23724    +3088     
============================================
+ Hits          82274    97294   +15020     
- Misses        44911    48945    +4034     
- Partials       6048     7357    +1309     
Flag Coverage Δ
custom-integration1 100.00% <ø> (+99.99%) ⬆️
integration 100.00% <ø> (+99.99%) ⬆️
integration1 100.00% <ø> (+99.99%) ⬆️
integration2 0.00% <ø> (ø)
java-11 63.31% <80.00%> (+1.61%) ⬆️
java-21 63.21% <80.00%> (+1.59%) ⬆️
skip-bytebuffers-false 63.34% <80.00%> (+1.59%) ⬆️
skip-bytebuffers-true 63.19% <80.00%> (+35.46%) ⬆️
temurin 63.34% <80.00%> (+1.59%) ⬆️
unittests 63.34% <80.00%> (+1.59%) ⬆️
unittests1 56.08% <ø> (+9.19%) ⬆️
unittests2 33.81% <80.00%> (+6.08%) ⬆️

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 5fd3619 into apache:master Feb 14, 2025
21 checks passed
@Jackie-Jiang Jackie-Jiang deleted the fix_completion_FSM branch February 14, 2025 21:57
zeronerdzerogeekzerocool pushed a commit to zeronerdzerogeekzerocool/pinot that referenced this pull request Feb 20, 2025
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.

Server replica allowed to overwrite deep store segment after segment was already committed
3 participants