fix(pools): move ILM-expired current versions during rebalance and remove moved copies

Signed-off-by: Denis Babchuk <babchukdenis@icloud.com>
This commit is contained in:
Denis Babchuk
2026-10-29 22:43:26 +03:00
parent 19910230aa
commit a995921e57
2 changed files with 32 additions and 7 deletions
@@ -447,3 +447,10 @@ func TestPoolsDecommissionCountsExpiredCurrentVersions(t *testing.T) {
t.Fatal("decommission check passed with an expired current version left in the pool")
}
}
// Rebalance removes the source copies of an object only when it has counted
// all of its versions. A version that ILM deletes must be counted, or the
// moved versions stay in pool 0 as duplicates.
func TestPoolsRebalanceLifecycleExpiry(t *testing.T) {
testMigrationLifecycleExpiry(t, "rebalance")
}