ruanwenjun commented on code in PR #15278:
URL: 
https://github.com/apache/dolphinscheduler/pull/15278#discussion_r1415585947


##########
dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/runner/GlobalTaskDispatchWaitingQueue.java:
##########
@@ -29,7 +27,7 @@
 @Component
 public class GlobalTaskDispatchWaitingQueue {
 
-    private final PriorityBlockingQueue<DefaultTaskExecuteRunnable> queue = 
new PriorityBlockingQueue<>();
+    private final DelayQueue<DefaultTaskExecuteRunnable> queue = new 
DelayQueue<>();

Review Comment:
   JDK doesn't have `DelayPriorityQueue`, the DelayQueue contains priority 
logic, in fact, the DelayQueue use PriorityQueue to store element.



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