Skip to content

Commit 4af6fbf

Browse files
committed
fix: correct ineffective retry logic
1 parent 294ab41 commit 4af6fbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/alipay/oceanbase/rpc/ObTableClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3221,7 +3221,7 @@ public ObPayload execute(final ObTableAbstractOperationRequest request) throws E
32213221
"tablename:{} partition id:{} batch ops refresh table while meet ObTableMasterChangeException, errorCode: {}",
32223222
request.getTableName(), request.getPartitionId(), ((ObTableException) ex).getErrorCode(), ex);
32233223

3224-
if (isRetryOnChangeMasterTimes() && tryTimes < maxRetries) {
3224+
if (isRetryOnChangeMasterTimes() && tryTimes <= maxRetries) {
32253225
logger.warn(
32263226
"tablename:{} partition id:{} batch ops retry while meet ObTableMasterChangeException, errorCode: {} , retry times {}",
32273227
request.getTableName(), request.getPartitionId(), ((ObTableException) ex).getErrorCode(),

0 commit comments

Comments
 (0)