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

Make recording state in tests thread-safe #521

Merged
merged 1 commit into from
Jul 24, 2019
Merged

Conversation

glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Jul 23, 2019

Motivation:

When the tests are run with TSAN, it complained about
concurrent modification of states in the connectivity state
recording delegate.

Modifications:

Guard access to the recorded states via a lock.

Result:

TSAN doesn't complain when running the tests.

@MrMage
Copy link
Collaborator

MrMage commented Jul 23, 2019

Is the test failure a flake?

@MrMage MrMage closed this Jul 23, 2019
@MrMage MrMage reopened this Jul 23, 2019
@glbrntt
Copy link
Collaborator Author

glbrntt commented Jul 23, 2019

I think so, the ClientTimeoutTests have been pretty bad, especially on Linux recently. I'll look into this.

@glbrntt
Copy link
Collaborator Author

glbrntt commented Jul 23, 2019

@MrMage flake should be fixed in #524 (#522 and #523 failed for the same reason)

Motivation:

When the tests are run with TSAN, it complained about
concurrent modification of states in the connectivity state
recording delegate.

Modifications:

Guard access to the recorded states via a lock.

Result:

TSAN doesn't complain when running the tests.
@MrMage MrMage merged commit d556b36 into grpc:nio Jul 24, 2019
@glbrntt glbrntt deleted the make-tsan-happy branch August 5, 2020 09:06
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