Skip to content

Commit cb37df7

Browse files
committed
do not refresh tablet location in batch in odp mode
1 parent 74f29e0 commit cb37df7

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,7 @@ public void partitionExecute(ObTableOperationResult[] results,
389389
} catch (Exception ex) {
390390
needRefreshPartitionLocation = true;
391391
if (obTableClient.isOdpMode()) {
392+
needRefreshPartitionLocation = false;
392393
// if exceptions need to retry, retry to timeout
393394
if (ex instanceof ObTableException
394395
&& ((ObTableException) ex).isNeedRetryError()) {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -651,6 +651,7 @@ public void partitionExecute(ObTableSingleOpResult[] results,
651651
} catch (Exception ex) {
652652
needRefreshPartitionLocation = true;
653653
if (obTableClient.isOdpMode()) {
654+
needRefreshPartitionLocation = false;
654655
// if exceptions need to retry, retry to timeout
655656
if (ex instanceof ObTableException && ((ObTableException) ex).isNeedRetryError()) {
656657
logger.warn("meet need retry exception when execute ls batch in odp mode." +

0 commit comments

Comments
 (0)