test(chunkstore): report retained roots on GC acceptance failure

This commit is contained in:
pingqiu committed 2026-11-21 10:49:03 -08:00
1 parent 10e88f765e
commit dadeb62eea
1 file changed
+1 -1
@@ -145,7 +145,7 @@ func TestIntegration_DeleteVolumeThenGC(t *testing.T) {
sort.Strings(want)
sort.Strings(got)
if fmt.Sprint(got) != fmt.Sprint(want) || gr.Reclaimed != len(want) {
t.Fatalf("GC reclaimed %v (%d); want exactly w1's A, w2's D and their unreachable manifests", got, gr.Reclaimed)
t.Fatalf("GC reclaimed %v (%d); want exactly w1's A, w2's D and their unreachable manifests; roots=%+v candidates=%d", got, gr.Reclaimed, gr.Roots, gr.Candidates)
}
for _, kept := range []string{bb.Key, cc.Key} {
if _, err := w1.Get(ctx, kept); err != nil {