Skip to content

Unsafe data race caused by the global TSO request pool #8076

@JmPotato

Description

@JmPotato

Bug Report

If (*client).dispatchTSORequestWithRetry directly calls tryDone() due to the error of context canceled, the caller might get the TSO result and put the request back into the pool. At this time, the old tsoClient may have data races with the new tsoClient when cleaning up residual TSO requests.

This is also the root cause of #8055.

Metadata

Metadata

Assignees

No one assigned

    Labels

    affects-8.1This bug affects the 8.1.x(LTS) versions.severity/criticaltype/bugThe issue is confirmed as a bug.

    Type

    No type

    Projects

    Status

    Closed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions