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

Close topics after creating all subscriptions on increment-partitions #778

Merged
merged 1 commit into from
Sep 21, 2017

Conversation

rdhabalia
Copy link
Contributor

Motivation

Right now, while incrementing-partitions for topic which has multiple subscribers (cursors): broker creates a topic for every cursor and then close it. So, if topic has multiple subscribers then multiple cursor tries to create and close topic which will give exception that topic is fenced or ledger is already closed. Therefore, broker should close all the newly created topics only once after creation of subscription process is done.

Modifications

Close topics once all the subscriptions created successfully.

Result

Broker will be able to update new partitioned without any intermittent issue.

@rdhabalia rdhabalia added the type/bug The PR fixed a bug or issue reported a bug label Sep 21, 2017
@rdhabalia rdhabalia added this to the 1.20.0-incubating milestone Sep 21, 2017
@rdhabalia rdhabalia self-assigned this Sep 21, 2017
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.

👍

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.

2 participants