pingcap / pingcap/tiproxy

Replace other atomic interfaces to sync/atomic

Open
#233 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

refactor
Dominant language
Go
Stars
73
Forks
41
Avg merge
21h 3m
Merged PRs (30d)
21

Description

Development Task

We have some different atomic interfaces:

  • go.uber.org/atomic
  • unsafe.Pointer
  • sync/atomic

We can replace another 2 with sync/atomic to be consistent.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by searching the repository for go.uber.org/atomic and unsafe.Pointer to locate the two remaining atomic interfaces. Review their usages and existing tests, then verify that both are consistently replaced with sync/atomic without changing behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.