Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

fix: Synchronize access to reads of fields in retry test#63967

Merged
varungandhi-src merged 1 commit into
mainfrom
vg/fix-data-race
Jul 22, 2024
Merged

fix: Synchronize access to reads of fields in retry test#63967
varungandhi-src merged 1 commit into
mainfrom
vg/fix-data-race

Conversation

@varungandhi-src

Copy link
Copy Markdown
Contributor

The reads for s.streamFailureFunc and s.streamError fields must be mutex protected
since another method may perform writes to those fields at the same time, and both
reads and writes must use the same mutex.

Test plan

I ran bazel test //internal/grpc/retry:retry_test --runs_per_test=100 and no longer see
a data race failure, but I see other errors, see Slack thread.

@cla-bot cla-bot Bot added the cla-signed label Jul 20, 2024
@varungandhi-src varungandhi-src requested a review from ggilmore July 20, 2024 14:21
@github-actions github-actions Bot added team/graph Graph Team (previously Code Intel/Language Tools/Language Platform) team/product-platform labels Jul 20, 2024
@varungandhi-src varungandhi-src enabled auto-merge (squash) July 22, 2024 00:13

@eseliger eseliger left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

thanks!!

@varungandhi-src varungandhi-src merged commit 6bbcede into main Jul 22, 2024
@varungandhi-src varungandhi-src deleted the vg/fix-data-race branch July 22, 2024 07:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed team/graph Graph Team (previously Code Intel/Language Tools/Language Platform) team/product-platform

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants