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

Fix tchannel race condition #5125

Merged
merged 1 commit into from
Nov 16, 2023
Merged

Fix tchannel race condition #5125

merged 1 commit into from
Nov 16, 2023

Conversation

MichaelSnowden
Copy link
Contributor

What changed?
This PR updates our version of tchannel to one that contains this change: temporalio/tchannel-go#7.

Why?
This should fix a rare race condition that happens where a tchannel is used while there are still handlers being added to it.

How did you test it?
I didn't reproduce it actually, but it's a very small change, and the race condition is pretty clear to see.

Potential risks
The only other changes pulled in from this upgrade were changes to the go.mod in tchannel-go, which look pretty innocuous:

-    golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f
-    golang.org/x/sys v0.0.0-20211019181941-9d821ace8654
+    golang.org/x/net v0.7.0
+    golang.org/x/sys v0.5.0

Is hotfix candidate?
No, it can wait. This only comes up super rarely.

@MichaelSnowden MichaelSnowden requested a review from a team as a code owner November 16, 2023 01:57
@MichaelSnowden MichaelSnowden merged commit a93926c into main Nov 16, 2023
10 checks passed
@MichaelSnowden MichaelSnowden deleted the snowden/tchannel-race branch November 16, 2023 04:25
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.

2 participants