Skip to content

Flaky test: race condition in service/matching/tasklist package #7863

@gitar-bot

Description

@gitar-bot

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds-infoNeeds additional information from the reporterstabilityServer stability issuestest

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions