Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

internal: fix rpc interceptor data race #845

Merged
merged 1 commit into from
Jun 19, 2023
Merged

Conversation

glorv
Copy link
Contributor

@glorv glorv commented Jun 19, 2023

ref: pingcap/tidb#44758

This PR changed ChainRPCInterceptors to always build a new interceptor to avoid data race will the original interceptor is used by other requests.

@glorv
Copy link
Contributor Author

glorv commented Jun 19, 2023

@Connor1996 @nolouch PTAL, thanks

Copy link
Member

@Connor1996 Connor1996 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Connor1996 Connor1996 merged commit 18b17d4 into tikv:master Jun 19, 2023
@glorv glorv deleted the fix-data-race branch June 19, 2023 05:19
iosmanthus added a commit that referenced this pull request Jun 29, 2023
Co-authored-by: disksing <[email protected]>
Co-authored-by: David <[email protected]>
Co-authored-by: Hu# <[email protected]>
Co-authored-by: Weizhen Wang <[email protected]>
Co-authored-by: you06 <[email protected]>
Co-authored-by: ShuNing <[email protected]>
Co-authored-by: Hu# <[email protected]>
Co-authored-by: zzm <[email protected]>
Co-authored-by: Yongbo Jiang <[email protected]>
Co-authored-by: crazycs <[email protected]>
Co-authored-by: glorv <[email protected]>
Co-authored-by: zyguan <[email protected]>
ResolvedTS error just write in debug log (#814)
ResolvedTS error just write in debug log (#825)
fix ci (#835)
fix rpc interceptor data race (#845)
resolver: let getTxnStatusFromLock return error when backoff timeout (#847)
iosmanthus added a commit that referenced this pull request Jun 29, 2023
Co-authored-by: disksing <[email protected]>
Co-authored-by: David <[email protected]>
Co-authored-by: Hu# <[email protected]>
Co-authored-by: Weizhen Wang <[email protected]>
Co-authored-by: you06 <[email protected]>
Co-authored-by: ShuNing <[email protected]>
Co-authored-by: Hu# <[email protected]>
Co-authored-by: zzm <[email protected]>
Co-authored-by: Yongbo Jiang <[email protected]>
Co-authored-by: crazycs <[email protected]>
Co-authored-by: glorv <[email protected]>
Co-authored-by: zyguan <[email protected]>
ResolvedTS error just write in debug log (#814)
ResolvedTS error just write in debug log (#825)
fix ci (#835)
fix rpc interceptor data race (#845)
resolver: let getTxnStatusFromLock return error when backoff timeout (#847)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants