lancelly commented on code in PR #11592:
URL: https://github.com/apache/iotdb/pull/11592#discussion_r1401574883


##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/exchange/MPPDataExchangeManager.java:
##########
@@ -299,11 +318,14 @@ public 
SourceHandleListenerImpl(IMPPDataExchangeManagerCallback<Throwable> onFai
 
     @Override
     public void onFinished(ISourceHandle sourceHandle) {
-      LOGGER.debug("[ScHListenerOnFinish]");
+      if (LOGGER.isDebugEnabled()) {
+        LOGGER.debug("[ScHListenerOnFinish]");
+      }
       Map<String, ISourceHandle> sourceHandleMap =
           sourceHandles.get(sourceHandle.getLocalFragmentInstanceId());
       if (sourceHandleMap == null
-          || sourceHandleMap.remove(sourceHandle.getLocalPlanNodeId()) == 
null) {
+          || sourceHandleMap.remove(sourceHandle.getLocalPlanNodeId()) == null
+              && (LOGGER.isDebugEnabled())) {

Review Comment:
     if ((sourceHandleMap == null
             || sourceHandleMap.remove(sourceHandle.getLocalPlanNodeId()) == 
null) && LOGGER.isDebugEnabled()) 



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

Reply via email to