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

ClientEffectiveStrategyTest: Attempt at fixing flakyness #2804

Merged
merged 1 commit into from
Jan 16, 2024

Conversation

daschl
Copy link
Contributor

@daschl daschl commented Jan 15, 2024

Based on initial analysis the ClientInvokingThreadRecorder's state gets written and read from multiple threads, but not all of it is properly thread-safe. The invokingThreads and errors use thread-safe datastructures, but the offloadPoints do not.

Since the offloadPoints are on the critical path for the flaky test failures, let's start by making them thread safe and check if the errors still show up.

If they still persist, there might be more coordination needed between the recording and checking threads as well.

@daschl
Copy link
Contributor Author

daschl commented Jan 15, 2024

Linking #2245

Based on initial analysis the ClientInvokingThreadRecorder's state
gets written and read from multiple threads, but not all of it is
properly thread-safe. The invokingThreads and errors use thread-safe
datastructures, but the offloadPoints do not.

Since the offloadPoints are on the critical path for the flaky
test failures, let's start by making them thread safe and check
if the errors still show up.

If they still persist, there might be more coordination needed
between the recording and checking threads as well.
Copy link
Contributor

@bryce-anderson bryce-anderson left a comment

Choose a reason for hiding this comment

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

Worth a try.

@daschl daschl merged commit b2fc0bc into apple:main Jan 16, 2024
15 checks passed
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