Skip to content

Fix weight redistributor sometimes dropping items - #666

Merged
dvdoug merged 2 commits into
dvdoug:masterfrom
RubenKluft:weight_redistributor_bug_fix
Aug 3, 2026
Merged

Fix weight redistributor sometimes dropping items#666
dvdoug merged 2 commits into
dvdoug:masterfrom
RubenKluft:weight_redistributor_bug_fix

Conversation

@RubenKluft

@RubenKluft RubenKluft commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Fixes issue #665 by checking that the same number of items are packed after a repack in the weight redistributor

Alternate approach that avoids looping over packed items: require zero packer
leftovers after doVolumeRepack so a single-box partial result is not treated
as a successful move.
@dvdoug

dvdoug commented Aug 3, 2026

Copy link
Copy Markdown
Owner

I've taken a different approach for the fix but thank you very much for the testcase that demonstrates the bug and the PR itself

@dvdoug
dvdoug merged commit 4d35307 into dvdoug:master Aug 3, 2026
24 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants