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

Remove orphan ledger when managedCursor fails to switch ledger #350

Merged
merged 1 commit into from
Apr 12, 2017

Conversation

rdhabalia
Copy link
Contributor

Motivation

Due to #336 issue, multiple brokers own same topic and it cause KeeperException.BadVersionException in broker when it tries to update cursorInfo with newly created ledger. Broker is not deleting created ledger and it exist without cursor reference. So, such orphan ledgers creates leak when broker fails to update cursor info.

Modifications

Handle cursorInfo failures and delete newly created ledger.

Result

It prevents ledger leak if broker fails to update cursor-info.

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

👍

@merlimat merlimat merged commit f572241 into apache:master Apr 12, 2017
@rdhabalia rdhabalia deleted the close-ledger branch June 21, 2017 18:54
hrsakai pushed a commit to hrsakai/pulsar that referenced this pull request Dec 10, 2020
Fixes apache#350

### Verifying this change

- [x] Make sure that the change passes the CI checks.

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

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

  - Dependencies (does it add or upgrade a dependency): no
  - The public API: no
  - The schema: no
  - The default values of configurations: no
  - The wire protocol: no

### Documentation

  - Does this pull request introduce a new feature? no
hangc0276 pushed a commit to hangc0276/pulsar that referenced this pull request May 26, 2021
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