This is an automated email from the ASF dual-hosted git repository.
yangzhg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git
The following commit(s) were added to refs/heads/master by this push:
new 4de21d6 [Debug Enhancement] Associate the old and new query id by
retry (#5820)
4de21d6 is described below
commit 4de21d604afe0779b34de8586e3fbfd618551054
Author: EmmyMiao87 <[email protected]>
AuthorDate: Mon May 17 11:53:21 2021 +0800
[Debug Enhancement] Associate the old and new query id by retry (#5820)
When a query is retried, the FE log cannot quickly associate the new and
old queries by query id.
This will increase the complexity of troubleshooting.
Modify the log printing logic of FE to associate the new and old query ids,
and the print log looks like this:
Query {old_query_id} {retry_times} times with new query id: {new_query_id}
---
fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java
b/fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java
index a2b78a4..7957c8f 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java
@@ -290,7 +290,7 @@ public class StmtExecutor implements ProfileWriter {
if (i > 0) {
UUID uuid = UUID.randomUUID();
TUniqueId newQueryId = new
TUniqueId(uuid.getMostSignificantBits(), uuid.getLeastSignificantBits());
- LOG.warn("Query {} {} times with new query id:
{}", DebugUtil.printId(queryId), i, newQueryId);
+ LOG.warn("Query {} {} times with new query id:
{}", DebugUtil.printId(queryId), i, DebugUtil.printId(newQueryId));
context.setQueryId(newQueryId);
}
handleQueryStmt();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]