Skip to content

Commit 42702f4

Browse files
committed
retry when ob trans timeout
1 parent 39fc204 commit 42702f4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/alipay/oceanbase/rpc/exception/ObTableException.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ public boolean isNeedRefreshTableEntry() {
8787
public boolean isNeedRetryError() {
8888
return errorCode == ResultCodes.OB_TRY_LOCK_ROW_CONFLICT.errorCode
8989
|| errorCode == ResultCodes.OB_TRANSACTION_SET_VIOLATION.errorCode
90-
|| errorCode == ResultCodes.OB_SCHEMA_EAGAIN.errorCode;
90+
|| errorCode == ResultCodes.OB_SCHEMA_EAGAIN.errorCode
91+
|| errorCode == ResultCodes.OB_TRANS_TIMEOUT.errorCode;
9192
}
9293

9394
}

0 commit comments

Comments
 (0)