Closed
Description
Describe the bug
https://github.com/cortexproject/cortex/actions/runs/10049567917/job/27775854567?pr=6096#step:6:139
==================
WARNING: DATA RACE
Read at 0x00c00032e6a0 by goroutine 61:
github.com/cortexproject/cortex/pkg/scheduler/queue.(*queues).getNextQueueForQuerier()
/__w/cortex/cortex/pkg/scheduler/queue/user_queues.go:234 +0x9c
github.com/cortexproject/cortex/pkg/scheduler/queue.TestQueueConcurrency.func1()
/__w/cortex/cortex/pkg/scheduler/queue/user_queues_test.go:482 +0x1a4
github.com/cortexproject/cortex/pkg/scheduler/queue.TestQueueConcurrency.gowrap1()
/__w/cortex/cortex/pkg/scheduler/queue/user_queues_test.go:488 +0x41
Previous write at 0x00c00032e6a0 by goroutine 66:
github.com/cortexproject/cortex/pkg/scheduler/queue.(*queues).deleteQueue()
/__w/cortex/cortex/pkg/scheduler/queue/user_queues.go:121 +0x24a
github.com/cortexproject/cortex/pkg/scheduler/queue.TestQueueConcurrency.func1()
/__w/cortex/cortex/pkg/scheduler/queue/user_queues_test.go:486 +0x12a
github.com/cortexproject/cortex/pkg/scheduler/queue.TestQueueConcurrency.gowrap1()
/__w/cortex/cortex/pkg/scheduler/queue/user_queues_test.go:488 +0x41
Goroutine 61 (running) created at:
github.com/cortexproject/cortex/pkg/scheduler/queue.TestQueueConcurrency()
/__w/cortex/cortex/pkg/scheduler/queue/user_queues_test.go:477 +0x337
testing.tRunner()
/usr/local/go/src/testing/testing.go:1689 +0x21e
testing.(*T).Run.gowrap1()
/usr/local/go/src/testing/testing.go:1742 +0x44
Goroutine 66 (finished) created at:
github.com/cortexproject/cortex/pkg/scheduler/queue.TestQueueConcurrency()
/__w/cortex/cortex/pkg/scheduler/queue/user_queues_test.go:477 +0x337
testing.tRunner()
/usr/local/go/src/testing/testing.go:1689 +0x21e
testing.(*T).Run.gowrap1()
/usr/local/go/src/testing/testing.go:1742 +0x44
==================
--- FAIL: TestQueueConcurrency (0.01s)
testing.go:1398: race detected during execution of test
FAIL
FAIL github.com/cortexproject/cortex/pkg/scheduler/queue 10.226s