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

For consuming segment, avoid using setter in IndexLoadingConfig #14190

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

Jackie-Jiang
Copy link
Contributor

@Jackie-Jiang Jackie-Jiang commented Oct 9, 2024

Sub-task of #14106

Currently in RealtimeSegmentDataManager we rely on calling IndexLoadingConfig.addInvertedIndexColumns() to create inverted index for sorted column. It can cause inconsistent index loading config and table config.
This PR avoids that and moves the handling logic into RealtimeSegmentConfig.
Added LLCRealtimeClusterIntegrationTest.testSortedColumn() to ensure the expected behavior.

@codecov-commenter
Copy link

codecov-commenter commented Oct 9, 2024

Codecov Report

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

Project coverage is 63.82%. Comparing base (59551e4) to head (2d007f2).
Report is 1165 commits behind head on master.

Files with missing lines Patch % Lines
...a/manager/realtime/RealtimeSegmentDataManager.java 66.66% 0 Missing and 1 partial ⚠️
...ent/local/realtime/impl/RealtimeSegmentConfig.java 90.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master   #14190      +/-   ##
============================================
+ Coverage     61.75%   63.82%   +2.07%     
- Complexity      207     1536    +1329     
============================================
  Files          2436     2622     +186     
  Lines        133233   144372   +11139     
  Branches      20636    22092    +1456     
============================================
+ Hits          82274    92151    +9877     
- Misses        44911    45432     +521     
- Partials       6048     6789     +741     
Flag Coverage Δ
custom-integration1 100.00% <ø> (+99.99%) ⬆️
integration 100.00% <ø> (+99.99%) ⬆️
integration1 100.00% <ø> (+99.99%) ⬆️
integration2 0.00% <ø> (ø)
java-11 55.42% <38.46%> (-6.29%) ⬇️
java-21 63.69% <84.61%> (+2.07%) ⬆️
skip-bytebuffers-false 63.82% <84.61%> (+2.07%) ⬆️
skip-bytebuffers-true 63.67% <84.61%> (+35.94%) ⬆️
temurin 63.82% <84.61%> (+2.07%) ⬆️
unittests 63.82% <84.61%> (+2.07%) ⬆️
unittests1 55.47% <38.46%> (+8.58%) ⬆️
unittests2 34.36% <69.23%> (+6.63%) ⬆️

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 9de57b0 into apache:master Oct 9, 2024
20 of 21 checks passed
@Jackie-Jiang Jackie-Jiang deleted the fix_realtime_sorted branch October 9, 2024 18:47
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