dataroaring commented on code in PR #56361:
URL: https://github.com/apache/doris/pull/56361#discussion_r2443870943


##########
fe/fe-core/src/main/java/org/apache/doris/planner/OlapTableSink.java:
##########
@@ -166,6 +173,14 @@ public void init(TUniqueId loadId, long txnId, long dbId, 
long loadChannelTimeou
         }
         tSink.setLoadToSingleTablet(loadToSingleTablet);
         tSink.setTxnTimeoutS(txnExpirationS);
+        if (randomTabletSwitchingThreshold > 0) {
+            LOG.debug("OlapTableSink: setting randomTabletSwitchingThreshold = 
{}",
+                     randomTabletSwitchingThreshold);
+            
tSink.setRandomTabletSwitchingThreshold(randomTabletSwitchingThreshold);
+        } else {
+            LOG.debug("OlapTableSink: randomTabletSwitchingThreshold <= 0, not 
setting. value = {}",
+                     randomTabletSwitchingThreshold);

Review Comment:
   isDebugEnabled is sugguested.



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