Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
admission: squash datarace in (*StoreWorkqueue).gcSequencers()
We see this (benign) data race in under --stress --race. Squash it by targeted use of atomics. Read at 0x00c0039c06a8 by goroutine 31161: github.com/cockroachdb/cockroach/pkg/util/admission.(*StoreWorkQueue).gcSequencers() github.com/cockroachdb/cockroach/pkg/util/admission/work_queue.go:2176 +0x196 github.com/cockroachdb/cockroach/pkg/util/admission.makeStoreWorkQueue.func1() github.com/cockroachdb/cockroach/pkg/util/admission/work_queue.go:2162 +0x5b Previous write at 0x00c0039c06a8 by goroutine 31105: github.com/cockroachdb/cockroach/pkg/util/admission.(*sequencer).sequence() github.com/cockroachdb/cockroach/pkg/util/admission/sequencer.go:61 +0x190 github.com/cockroachdb/cockroach/pkg/util/admission.(*StoreWorkQueue).sequenceReplicatedWork() github.com/cockroachdb/cockroach/pkg/util/admission/work_queue.go:2193 +0x145 github.com/cockroachdb/cockroach/pkg/util/admission.(*StoreWorkQueue).Admit() Release note: None
- Loading branch information