Flaky Test: Race Condition in Task List Manager
Package: github.com/uber/cadence/service/matching/tasklist
Description
The Go race detector identified concurrent write access to shared state in the task list manager. The package fails intermittently with a race condition during concurrent test execution.
Detected race: Write at 0x00c000790ac8 by goroutine 1027 (concurrent write access to shared state).
The package failed after 22.942s with 82.5% coverage.
Observed in CI
Observed in CI job 69388077323 on PR #7806.
How to Reproduce
Run with the race detector enabled:
go test -race ./service/matching/tasklist/...
Suggested Fix
- Add mutex protection or synchronization primitives around shared state in the task list manager.
- Review goroutine lifecycle and ensure proper channel-based communication or atomic operations for concurrent access.
Notes
This is a pre-existing flaky test unrelated to recent code changes.
Flaky Test: Race Condition in Task List Manager
Package:
github.com/uber/cadence/service/matching/tasklistDescription
The Go race detector identified concurrent write access to shared state in the task list manager. The package fails intermittently with a race condition during concurrent test execution.
Detected race: Write at
0x00c000790ac8by goroutine 1027 (concurrent write access to shared state).The package failed after 22.942s with 82.5% coverage.
Observed in CI
Observed in CI job 69388077323 on PR #7806.
How to Reproduce
Run with the race detector enabled:
Suggested Fix
Notes
This is a pre-existing flaky test unrelated to recent code changes.