Closed pracucci closed 2 weeks ago
testing.go:1231: TempDir RemoveAll cleanup: unlinkat /tmp/TestLabelNames_Cancelled3562416338/001: directory not empty```
I will have a look later but from the first look, it might be that there is a race between a clean-up in testing.T.TmpDir
and the internals of BucketStore.RemoveBlocksAndClose
. The latter doesn't wait for the goroutine inside snapshotter (and indexReaderPool) to actually stop, so the goroutine can write a lazy-loaded
index, while the bucket's directory is being cleaned out by the test.
In this CI run I've seen
TestLabelNames_Cancelled
being flaky: