Skip to content

Commit 2aa2a36

Browse files
committed
remove assert
1 parent 749eff4 commit 2aa2a36

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/main/java/com/alipay/oceanbase/rpc/table/ObTableClientBatchOpsImpl.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -401,14 +401,12 @@ public void partitionExecute(ObTableOperationResult[] results,
401401
assert ex instanceof ObTableException;
402402
logger
403403
.warn(
404-
"batch ops execute while meet Exception, tablename:{}, errorCode: {} , errorMsg: {}, try times {}",
405-
tableName, ((ObTableException) ex).getErrorCode(), ex.getMessage(),
404+
"batch ops execute while meet Exception, tablename:{}, errorMsg: {}, try times {}",
405+
tableName, ex.getMessage(),
406406
tryTimes);
407407
if (ex instanceof ObTablePartitionChangeException
408408
&& ((ObTablePartitionChangeException) ex).getErrorCode() == ResultCodes.OB_ERR_KV_ROUTE_ENTRY_EXPIRE.errorCode) {
409409
odpNeedRenew = true;
410-
} else {
411-
throw ex;
412410
}
413411
} else {
414412
RUNTIME.error("retry fail when normal batch executing", ex);

0 commit comments

Comments
 (0)