dataroaring commented on code in PR #31749:
URL: https://github.com/apache/doris/pull/31749#discussion_r1519332853
##########
fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java:
##########
@@ -718,14 +730,62 @@ private void handleQueryWithRetry(TUniqueId queryId)
throws Exception {
AuditLog.getQueryAudit().log("Query {} {} times with new
query id: {}",
DebugUtil.printId(queryId), i,
DebugUtil.printId(newQueryId));
context.setQueryId(newQueryId);
+ if (Config.isCloudMode()) {
+ // sleep random millis [1000, 1500] ms
+ // in the begining of retryTime/2
+ int randomMillis = 1000 + (int) (Math.random() * (1000
- 500));
+ LOG.debug("stmt executor retry times {}, wait
randomMillis:{}, stmt:{}",
+ i, randomMillis, originStmt.originStmt);
+ try {
+ if (i > retryTime / 2) {
+ // sleep random millis [2000, 2500] ms
Review Comment:
We should handle same with cloud mode diabled.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]