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

[8.7] Return a copy of messages in MockMTAppender (#94982) #95004

Merged
merged 1 commit into from
Apr 4, 2023

Conversation

pxsalehi
Copy link
Member

@pxsalehi pxsalehi commented Apr 4, 2023

Cherry-pick of #94982

Couldn't reproduce the failure, but in principle there is an issue
there. Other options are a CopyOnWriteArrayList or just synchronizing on
`messages()` return value. Returning a copy should be enough, since this
is only used in one place for asserting some test expectations in an
`assertBusy`.

Closes elastic#94559
@pxsalehi pxsalehi added >test Issues or PRs that are addressing/adding tests :Distributed/Engine Anything around managing Lucene and the Translog in an open shard. backport auto-merge Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) v8.7.1 labels Apr 4, 2023
@elasticsearchmachine elasticsearchmachine merged commit f7baae9 into elastic:8.7 Apr 4, 2023
@pxsalehi pxsalehi deleted the ps230404-cpick-94982 branch April 4, 2023 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport :Distributed/Engine Anything around managing Lucene and the Translog in an open shard. >test Issues or PRs that are addressing/adding tests v8.7.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants