ruanwenjun opened a new issue #6112:
URL: https://github.com/apache/dolphinscheduler/issues/6112


   **Describe the bug**
   
https://github.com/apache/dolphinscheduler/blob/93ef12366b422d1410c8de45e541ef4f97239a84/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/processor/queue/StateEventResponseService.java#L104-L121
   
   In the line 116, when the eventQueue throw an `InterruptedException`, we 
will catch this exception and reset the current thread state to interrupt, in 
most case, it is suitable for most cases.
   But in this case, we will use while(true) to loop, and when the current 
thread is interrupt, the blockqueue will throw InterruptedException.
   
   So the code is equals with below
   ```java
   while(Stopper.isRunning()) {
         logger.warn("persist task error", e);
   }
   ```
   
   **Which version of Dolphin Scheduler:**
    -[dev]
   


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