Skip to content

[8.2] [Test] Use thread-safe hashSet for result collection (#85653) #85804

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

Merged
merged 1 commit into from
Apr 12, 2022

Conversation

ywangd
Copy link
Member

@ywangd ywangd commented Apr 12, 2022

Backports the following commits to 8.2:

Use regular HashSet in a deliberate concurrency code block sometimes
results into unexpected behaviour: The hashSet has only a single item
but size() reports 2. This PR replaces the regular hashSet with a
thread-safe version to fix spurious test failures.

Resolves: elastic#85411
@ywangd ywangd added auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport labels Apr 12, 2022
@elasticsearchmachine elasticsearchmachine merged commit 01635f3 into elastic:8.2 Apr 12, 2022
@ywangd ywangd deleted the backport/8.2/pr-85653 branch April 12, 2022 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport v8.2.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants