weizuo93 commented on code in PR #20597:
URL: https://github.com/apache/doris/pull/20597#discussion_r1224468428


##########
fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java:
##########
@@ -1371,6 +1371,18 @@ private void sendResult(boolean isOutfileQuery, boolean 
isSendFields, Queriable
         }
         profile.getSummaryProfile().setQueryScheduleFinishTime();
         updateProfile(false);
+        if (coord.getInstanceTotalNum() > 1) {
+            try {
+                LOG.debug("Start to execute fragment. user: {}, db: {}, sql: 
{}, fragment instance num: {}",

Review Comment:
   > add if Log.isdebugenabled() because the sql maybe very long in some cases 
it may cost a lot of memory or cpu time.
   
   Done.



##########
fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java:
##########
@@ -1449,6 +1461,16 @@ private void sendResult(boolean isOutfileQuery, boolean 
isSendFields, Queriable
             throw e;
         } finally {
             fetchResultSpan.end();
+            if (coord.getInstanceTotalNum() > 1) {
+                try {
+                    LOG.debug("Finish to execute fragment. user: {}, db: {}, 
sql: {}, fragment instance num: {}",

Review Comment:
   > and here.
   
   Done.



-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to