From c42531e39c84af08b795d76e01f088e97367839a Mon Sep 17 00:00:00 2001 From: zwZjut Date: Thu, 2 Dec 2021 16:34:38 +0800 Subject: [PATCH] to #7108 (#7109) --- .../server/master/runner/WorkflowExecuteThread.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/runner/WorkflowExecuteThread.java b/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/runner/WorkflowExecuteThread.java index 44eac21f57..152aaeaa2c 100644 --- a/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/runner/WorkflowExecuteThread.java +++ b/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/runner/WorkflowExecuteThread.java @@ -251,7 +251,7 @@ public class WorkflowExecuteThread implements Runnable { } private void handleEvents() { - while (this.stateEvents.size() > 0) { + while (!this.stateEvents.isEmpty()) { try { StateEvent stateEvent = this.stateEvents.peek();