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

[fix][flaky-test] ElasticSearchClientTests.testBulkBlocking #16920

Merged
merged 2 commits into from
Aug 9, 2022

Conversation

coderzc
Copy link
Member

@coderzc coderzc commented Aug 2, 2022

Fixes #16829

Motivation

The root cause is the ack() function will be multi-threaded concurrent execution, but ack++ is not an atomic operation.

Modifications

Use LongAdder instead of int to ensure the atomicity.

Documentation

Check the box below or label this PR directly.

Need to update docs?

  • doc-required
    (Your PR needs to update docs and you will update later)

  • doc-not-needed
    (Please explain why)

  • doc
    (Your PR contains doc changes)

  • doc-complete
    (Docs have been already added)

@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Aug 2, 2022
@coderzc coderzc marked this pull request as draft August 3, 2022 03:36
@codelipenghui codelipenghui added this to the 2.12.0 milestone Aug 8, 2022
@coderzc coderzc marked this pull request as ready for review August 8, 2022 11:12
@mattisonchao mattisonchao merged commit f02679d into apache:master Aug 9, 2022
nicoloboschi pushed a commit to datastax/pulsar that referenced this pull request Aug 16, 2022
Technoboy- pushed a commit to merlimat/pulsar that referenced this pull request Aug 16, 2022
Jason918 pushed a commit that referenced this pull request Sep 2, 2022
congbobo184 pushed a commit that referenced this pull request Nov 11, 2022
@congbobo184 congbobo184 added the cherry-picked/branch-2.9 Archived: 2.9 is end of life label Nov 11, 2022
congbobo184 pushed a commit that referenced this pull request Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flaky-test: ElasticSearchClientTests.testBulkBlocking
6 participants