Skip to content

Commit

Permalink
Fix batch wait (#278)
Browse files Browse the repository at this point in the history
* remove unnecessary sleep

* fix log arg
  • Loading branch information
maochongxin authored Jan 9, 2025
1 parent 642ad45 commit 857e829
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ protected ObPayload commonExecute(ObTableClient client, Logger logger,
}
} else {
String logMessage = String.format(
"exhaust retry while meet NeedRefresh Exception, table name: %s, ls id: %d, batch ops refresh table, errorCode: %d",
"exhaust retry while meet NeedRefresh Exception, table name: %s, batch ops refresh table, errorCode: %d",
indexTableName,
((ObTableException) e).getErrorCode()
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,6 @@ private void executeWithRetries(ObTableOperationResult[] results, Map.Entry<Long
throw e;
}
}
Thread.sleep(obTableClient.getRuntimeRetryInterval());
}

if (allPartitionsSuccess) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,6 @@ private void executeWithRetries(
throw e;
}
}
Thread.sleep(obTableClient.getRuntimeRetryInterval());
}

if (allPartitionsSuccess) {
Expand Down

0 comments on commit 857e829

Please sign in to comment.