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][txn] Fix TopicTransactionBuffer ledger apend marker throw ManagedLedgerAlreadyClosedException #16265

Merged

Conversation

congbobo184
Copy link
Contributor

@congbobo184 congbobo184 commented Jun 28, 2022

Motivation

we don't handle append tb transaction marker when the ledger in WriteFailed throw ManagedLedgerAlreadyClosedException.
When ledger in WriteFailed, we need to close the current ledger and create a new ledger, same as #14738

Modifications

change the ledger to the WriteFailed state, and it will take automatic recovery, and the commit will be successful

Verifying this change

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

If yes was chosen, please highlight the changes

  • 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)
  • The rest endpoints: (no)
  • The admin cli options: (no)
  • Anything that affects deployment: (no)

Documentation

  • Does this pull request introduces a new feature? (yes)

  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

  • If a feature is not applicable for documentation, explain why?

  • If a feature is not documented yet in this PR, please create a follow-up issue for adding the documentation

  • doc-not-needed

@congbobo184 congbobo184 added type/bug The PR fixed a bug or issue reported a bug area/broker area/transaction doc-not-needed Your PR changes do not impact docs release/2.10.2 release/2.9.4 labels Jun 28, 2022
@congbobo184 congbobo184 added this to the 2.11.0 milestone Jun 28, 2022
@congbobo184 congbobo184 self-assigned this Jun 28, 2022
@congbobo184 congbobo184 added doc-not-needed Your PR changes do not impact docs and removed doc-not-needed Your PR changes do not impact docs labels Jul 1, 2022
@liangyepianzhou liangyepianzhou merged commit e616e2c into apache:master Jul 1, 2022
mattisonchao pushed a commit that referenced this pull request Jul 2, 2022
…edLedgerAlreadyClosedException (#16265)

* [fix][txn] Fix TopicTransactionBuffer ledger apend marker throw ManagedLedgerAlreadyClosedException

(cherry picked from commit e616e2c)
@mattisonchao mattisonchao added the cherry-picked/branch-2.9 Archived: 2.9 is end of life label Jul 2, 2022
Nicklee007 pushed a commit to Nicklee007/pulsar that referenced this pull request Jul 5, 2022
…edLedgerAlreadyClosedException (apache#16265)

* [fix][txn] Fix TopicTransactionBuffer ledger apend marker throw ManagedLedgerAlreadyClosedException
codelipenghui pushed a commit that referenced this pull request Jul 10, 2022
…edLedgerAlreadyClosedException (#16265)

* [fix][txn] Fix TopicTransactionBuffer ledger apend marker throw ManagedLedgerAlreadyClosedException

(cherry picked from commit e616e2c)
nicoloboschi pushed a commit to datastax/pulsar that referenced this pull request Jul 11, 2022
…edLedgerAlreadyClosedException (apache#16265)

* [fix][txn] Fix TopicTransactionBuffer ledger apend marker throw ManagedLedgerAlreadyClosedException

(cherry picked from commit e616e2c)
(cherry picked from commit eba93cf)
wuxuanqicn pushed a commit to wuxuanqicn/pulsar that referenced this pull request Jul 14, 2022
…edLedgerAlreadyClosedException (apache#16265)

* [fix][txn] Fix TopicTransactionBuffer ledger apend marker throw ManagedLedgerAlreadyClosedException
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/broker area/transaction cherry-picked/branch-2.9 Archived: 2.9 is end of life cherry-picked/branch-2.10 doc-not-needed Your PR changes do not impact docs release/2.9.4 release/2.10.2 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