luozenglin commented on code in PR #12205:
URL: https://github.com/apache/doris/pull/12205#discussion_r959197263


##########
fe/fe-core/src/main/java/org/apache/doris/qe/ConnectProcessor.java:
##########
@@ -534,6 +539,12 @@ public TMasterOpResult proxyExecute(TMasterOpRequest 
request) {
             }
         }
 
+        Map<String, String> traceCarrier = new HashMap<>();
+        if (request.isSetTraceCarrier()) {
+            traceCarrier = request.getTraceCarrier();
+        }
+        ctx.initTracer("master trace");

Review Comment:
   I think `initTracer` is only needed if the `traceCarrier` carries a valid 
span, otherwise a new trace may be generated here. 
   You can set `enable_tracing = false` in follower, and set `enable_tracing = 
true` in master to reproduce this situation.



-- 
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]

Reply via email to