alamb commented on issue #5278:
URL: 
https://github.com/apache/arrow-datafusion/issues/5278#issuecomment-1432914444

   > What could be the reason for this behavior? It seems that only 
CoalescePartitionsExec is affected by thread sleep.
   
    Your test (implicitly) uses a single threaded tokio executor (so there is 
only a single thread). With only a single thread, as @crepererum  mentions you 
need to yield control back to the scheduler (which is what `.await` does under 
the covers).
   
   I think the need for yielding is true for any cooperative scheduler system, 
but using `await` definitely may make that too magical


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