tenglei commented on code in PR #38181:
URL: https://github.com/apache/spark/pull/38181#discussion_r990975571


##########
core/src/main/scala/org/apache/spark/scheduler/AsyncEventQueue.scala:
##########
@@ -154,8 +154,9 @@ private class AsyncEventQueue(
       return
     }
 
-    eventCount.incrementAndGet()
-    if (eventQueue.offer(event)) {
+    if (eventQueue.offer(event, conf.get(LISTENER_BUS_EVENT_QUEUE_TIMEOUT),
+      TimeUnit.MILLISECONDS)) {

Review Comment:
   > the event subsystem has been written to ensure it continues to work with 
lost events and prioritize stability of internal subsystems by remaining non 
blocking
   Yes, it seems better to speed up the consumption of spark events in 
eventQueue, for example by using more threads



##########
core/src/main/scala/org/apache/spark/scheduler/AsyncEventQueue.scala:
##########
@@ -154,8 +154,9 @@ private class AsyncEventQueue(
       return
     }
 
-    eventCount.incrementAndGet()
-    if (eventQueue.offer(event)) {
+    if (eventQueue.offer(event, conf.get(LISTENER_BUS_EVENT_QUEUE_TIMEOUT),
+      TimeUnit.MILLISECONDS)) {

Review Comment:
   > the event subsystem has been written to ensure it continues to work with 
lost events and prioritize stability of internal subsystems by remaining non 
blocking
   
   Yes, it seems better to speed up the consumption of spark events in 
eventQueue, for example by using more threads



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