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][broker] Avoid ConcurrentModificationException for ModularLoadManagerImpl.cleanupDeadBrokersData() #16690

Merged
merged 1 commit into from
Jul 20, 2022

Conversation

codelipenghui
Copy link
Contributor

@codelipenghui codelipenghui commented Jul 20, 2022

Fixes #16689

Motivation

Avoid ConcurrentModificationException for ModularLoadManagerImpl.cleanupDeadBrokersData()
The problem was introduced in #14411, so we don't need to cherry-pick to release branches.

Modifications

Make a copy of knownBrokers.

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)

@codelipenghui codelipenghui marked this pull request as ready for review July 20, 2022 03:34
@codelipenghui codelipenghui self-assigned this Jul 20, 2022
@codelipenghui codelipenghui added type/bug The PR fixed a bug or issue reported a bug area/broker labels Jul 20, 2022
@codelipenghui codelipenghui added this to the 2.11.0 milestone Jul 20, 2022
@codelipenghui codelipenghui added the doc-not-needed Your PR changes do not impact docs label Jul 20, 2022
@codelipenghui codelipenghui merged commit 21a25bf into apache:master Jul 20, 2022
@codelipenghui codelipenghui deleted the penghui/fix-16689 branch July 20, 2022 15:12
nodece pushed a commit to nodece/pulsar that referenced this pull request Jul 23, 2024
…nagerImpl.cleanupDeadBrokersData() (apache#16690)

(cherry picked from commit 21a25bf)
nodece pushed a commit to ascentstream/pulsar that referenced this pull request Jul 24, 2024
…nagerImpl.cleanupDeadBrokersData() (apache#16690)

(cherry picked from commit 21a25bf)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/broker doc-not-needed Your PR changes do not impact docs type/bug The PR fixed a bug or issue reported a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flaky-test: OwnerShipCacheForCurrentServerTest.setup
4 participants