Skip to content

Conversation

@klsince
Copy link
Contributor

@klsince klsince commented Apr 27, 2023

This PR tries to make index config tier overwriting #10553 more robust.

Turns out the fix in #10642 is not enough, e.g. if one updates tierConfigs in table config and calls rebalance API to move segments around and it happens before SegmentRelocator task kicks in to update the segment target tiers, it's still possible that segments are loaded on the new servers without using the tier specific index configs. So moving the logic that updates segment target tier into rebalanceTable method to be shared by both table rebalance API and SegmentRelocator periodic task.

@codecov-commenter
Copy link

codecov-commenter commented Apr 27, 2023

Codecov Report

Merging #10695 (3790fe5) into master (d806b5f) will decrease coverage by 4.21%.
The diff coverage is 60.97%.

@@             Coverage Diff              @@
##             master   #10695      +/-   ##
============================================
- Coverage     68.44%   64.24%   -4.21%     
+ Complexity     6421     6408      -13     
============================================
  Files          2107     2053      -54     
  Lines        113792   111304    -2488     
  Branches      17199    16903     -296     
============================================
- Hits          77887    71502    -6385     
- Misses        30369    34636    +4267     
+ Partials       5536     5166     -370     
Flag Coverage Δ
integration1 ?
unittests1 67.74% <ø> (+<0.01%) ⬆️
unittests2 13.85% <60.97%> (-0.03%) ⬇️

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

Impacted Files Coverage Δ
...roller/helix/core/relocation/SegmentRelocator.java 50.00% <0.00%> (-17.84%) ⬇️
...ntroller/helix/core/PinotHelixResourceManager.java 62.69% <63.88%> (-6.72%) ⬇️
...oller/api/resources/PinotTableRestletResource.java 50.24% <100.00%> (-2.96%) ⬇️

... and 370 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@npawar npawar merged commit 53cb451 into apache:master May 2, 2023
@klsince klsince deleted the update_tier_during_rebalance branch May 2, 2023 04:51
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.

4 participants