Skip to content

Conversation

@michaeljmarshall
Copy link
Member

…eduplication

Motivation

In #12493, we introduced potentially concurrent updates to the inactiveProducers map without any synchronization.

Modifications

  • Ensure that we only update the inactiveProducers map using proper synchronization.

Verifying this change

This change is a trivial rework / code cleanup without any test coverage.

Does this pull request potentially affect one of the following parts:

No breaking changes.

Documentation

  • no-need-doc

@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Nov 15, 2021
@michaeljmarshall
Copy link
Member Author

@merlimat and @congbobo184 - PTAL. Based on #12493 (comment), it looks like we prefer synchronization on the class as opposed to using a concurrent hash map. Let me know if my assumption here is correct, thanks.

Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@eolivelli
Copy link
Contributor

@merlimat I can include this patch in 2.9.0.
I was going to send out the VOTE but I can restart the procedure tomorrow

@merlimat merlimat merged commit 9994614 into apache:master Nov 15, 2021
@michaeljmarshall michaeljmarshall deleted the synchronize-map-updates branch November 17, 2021 04:59
eolivelli pushed a commit to eolivelli/pulsar that referenced this pull request Nov 29, 2021
@lhotari lhotari added this to the 2.10.0 milestone Dec 9, 2021
@lhotari lhotari added type/bug The PR fixed a bug or issue reported a bug release/2.8.2 release/2.9.1 labels Dec 9, 2021
lhotari pushed a commit that referenced this pull request Dec 9, 2021
@lhotari lhotari added the cherry-picked/branch-2.8 Archived: 2.8 is end of life label Dec 9, 2021
@lhotari
Copy link
Member

lhotari commented Dec 9, 2021

depends on #12493

lhotari pushed a commit that referenced this pull request Dec 9, 2021
@lhotari lhotari added the cherry-picked/branch-2.9 Archived: 2.9 is end of life label Dec 9, 2021
lhotari pushed a commit to datastax/pulsar that referenced this pull request Dec 10, 2021
…eduplication (apache#12820)

(cherry picked from commit 9994614)
(cherry picked from commit e12bcc2)
fxbing pushed a commit to fxbing/pulsar that referenced this pull request Dec 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-picked/branch-2.8 Archived: 2.8 is end of life cherry-picked/branch-2.9 Archived: 2.9 is end of life doc-not-needed Your PR changes do not impact docs release/2.8.2 release/2.9.1 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.

4 participants