Skip to content

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

Merged
elasticsearchmachine merged 1 commit intoelastic:8.2from
ywangd:backport/8.2/pr-85653
Apr 12, 2022
Merged

[8.2] [Test] Use thread-safe hashSet for result collection (#85653)#85804
elasticsearchmachine merged 1 commit intoelastic:8.2from
ywangd:backport/8.2/pr-85653

Conversation

@ywangd
Copy link
Copy Markdown
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