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

BrokerService should not remove failed topic from map with the same thread which adds in map to prevent deadlock #375

Merged
merged 1 commit into from
Apr 21, 2017

Conversation

rdhabalia
Copy link
Contributor

@rdhabalia rdhabalia commented Apr 21, 2017

Motivation

while loading topic if broker-service fails to load it tries to remove topic from the map in the same thread which tries to load topic and it can create a deadlock while loading topic.

Modifications

Remove topic from concurrentMap topics to prevent possible deadlock.

Result

It will prevent possible deadlock while loading a topic.

@rdhabalia rdhabalia added the type/bug The PR fixed a bug or issue reported a bug label Apr 21, 2017
@rdhabalia rdhabalia added this to the 1.18 milestone Apr 21, 2017
@rdhabalia rdhabalia self-assigned this Apr 21, 2017
@rdhabalia rdhabalia force-pushed the topic_load_deadlock branch 2 times, most recently from 2f1084f to 23e3fdc Compare April 21, 2017 19:09
Copy link
Contributor

@merlimat merlimat left a comment

Choose a reason for hiding this comment

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

👍

@merlimat merlimat merged commit 26963dc into apache:master Apr 21, 2017
rdhabalia added a commit that referenced this pull request Apr 24, 2017
…hread which adds in map to prevent deadlock (#375)
@rdhabalia rdhabalia deleted the topic_load_deadlock branch June 21, 2017 18:51
hrsakai pushed a commit to hrsakai/pulsar that referenced this pull request Dec 10, 2020
hangc0276 pushed a commit to hangc0276/pulsar that referenced this pull request May 26, 2021
Add Pierre as the Maintainer
sort name by a-z order
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

None yet

2 participants