Skip to content

Commit

Permalink
bugfix: fix can't rollback when set rollback retry count was zero. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
l81893521 committed Jun 9, 2020
1 parent e040126 commit cf6957b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,7 @@ public void testCompensationAndSubStateMachineAsync() throws Exception {
}

@Test
@Disabled("https://github.com/seata/seata/issues/2414#issuecomment-640432396")
public void testCompensationAndSubStateMachineAsyncWithLayout() throws Exception {

long start = System.currentTimeMillis();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public void commit() throws TransactionException {
return;
}
assertXIDNotNull();
int retry = COMMIT_RETRY_COUNT;
int retry = COMMIT_RETRY_COUNT <= 0 ? DEFAULT_TM_COMMIT_RETRY_COUNT : COMMIT_RETRY_COUNT;
try {
while (retry > 0) {
try {
Expand Down Expand Up @@ -156,7 +156,7 @@ public void rollback() throws TransactionException {
}
assertXIDNotNull();

int retry = ROLLBACK_RETRY_COUNT;
int retry = ROLLBACK_RETRY_COUNT <= 0 ? DEFAULT_TM_ROLLBACK_RETRY_COUNT : ROLLBACK_RETRY_COUNT;
try {
while (retry > 0) {
try {
Expand Down

0 comments on commit cf6957b

Please sign in to comment.