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


##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/operator/OperatorContext.java:
##########
@@ -90,8 +96,8 @@ public Duration getMaxRunTime() {
     return maxRunTime;
   }
 
-  public void setMaxRunTime(Duration maxRunTime) {
-    this.maxRunTime = maxRunTime;
+  public static void setMaxRunTime(Duration maxRunTime) {
+    OperatorContext.maxRunTime = maxRunTime;

Review Comment:
   why not remove this method since it is now only used in tests and 
ClientRpcServiceImpl? I think there's no need to call this method both in tests 
and ClientRpcServiceImpl, too.
   <img width="1087" alt="截屏2023-11-18 10 37 28" 
src="https://github.com/apache/iotdb/assets/108499334/c885533b-a3d3-4a70-b527-74e07c8aec10";>
   



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