Skip to content

Commit

Permalink
bugfix: When the rollback logic on the TC side returns RollbackFailed…
Browse files Browse the repository at this point in the history
…, the custom FailureHandler is not executed. (apache#5311)
  • Loading branch information
ZhangShiYeChina committed Feb 9, 2023
1 parent 4428ffa commit 21dc9eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tm/src/main/java/io/seata/tm/api/TransactionalTemplate.java
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public Object execute(TransactionalExecutor business) throws Throwable {
* Judge whether timeout
*
* @param beginTime the beginTime
* @param txInfo the transaction info
* @param txInfo the transaction info
* @return is timeout
*/
private boolean isTimeout(long beginTime, TransactionInfo txInfo) {
Expand Down Expand Up @@ -241,7 +241,7 @@ private void rollbackTransaction(GlobalTransaction tx, Throwable originalExcepti

//# fix #5231
TransactionalExecutor.Code code;
switch(tx.getLocalStatus()) {
switch (tx.getLocalStatus()) {
case RollbackFailed:
case TimeoutRollbackFailed:
code = TransactionalExecutor.Code.RollbackFailure;
Expand Down

0 comments on commit 21dc9eb

Please sign in to comment.