-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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 some exception handle in transaction buffer #14808
[fix][txn]: fix some exception handle in transaction buffer #14808
Conversation
/pulsarbot run-failure-checks |
@@ -342,7 +342,7 @@ public void addFailed(ManagedLedgerException exception, Object ctx) { | |||
} | |||
}).exceptionally(exception -> { | |||
log.error("Transaction {} abort on topic {}.", txnID.toString(), topic.getName()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
log.error("Transaction {} abort on topic {}.", txnID.toString(), topic.getName()); | |
log.error("Transaction {} abort on topic {}.", txnID.toString(), topic.getName(), exception.getCause()); |
@@ -296,7 +296,7 @@ public void addFailed(ManagedLedgerException exception, Object ctx) { | |||
} | |||
}).exceptionally(exception -> { | |||
log.error("Transaction {} commit on topic {}.", txnID.toString(), topic.getName(), exception); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
log.error("Transaction {} commit on topic {}.", txnID.toString(), topic.getName(), exception); | |
log.error("Transaction {} commit on topic {}.", txnID.toString(), topic.getName(), exception.getCause()); |
@@ -218,7 +218,7 @@ public void recoverExceptionally(Exception e) { | |||
} | |||
}).exceptionally(exception -> { | |||
log.error("Topic {}: TransactionBuffer recover failed", this.topic.getName(), exception); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
log.error("Topic {}: TransactionBuffer recover failed", this.topic.getName(), exception); | |
log.error("Topic {}: TransactionBuffer recover failed", this.topic.getName(), exception.getCause()); |
(cherry picked from commit 4824912)
(cherry picked from commit 4824912)
Motivation
fix some exception return in transaction buffer
Modifications
use exception.getCause();
Verifying this change
add test for it
Does this pull request potentially affect one of the following parts:
If
yes
was chosen, please highlight the changesDocumentation