Skip to content

Unify the approaches of spawning background jobs #1510

@ekexium

Description

@ekexium

In the current codebase, client-go provides several ways to spawn background or asynchronous tasks:

  • builtin go
  • kvstore.Go(func())
  • KVTxn.spawnWithStorePool

Using multiple approaches simultaneously may lead to issues such as data races (as seen in pingcap/tidb#57213).

We should standardize on a single approach to minimize risks and maintain code simplicity.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions