juliuszsompolski commented on PR #41443:
URL: https://github.com/apache/spark/pull/41443#issuecomment-1591955686

   Questions comparing to Thriftserver state transitions:
   - Do we want to distinguish STARTED (when the request starts being 
processed, before PARSED) and RUNNING (for plan executions that would be when 
`submitJob` is called?)
   - Thriftserver distinguishes FINISHED (when execution finished, and results 
are still being send out) vs. CLOSED (when the results iterator is fully 
closed). The difference is that Thriftserver first collects all results, and 
only then starts sending them out. Spark Connect starts sending results as soon 
as some are available. We could however consider a "FINISHED" state, when all 
results are available, but yet being send out. This could be done in 
https://github.com/apache/spark/pull/41443/files#diff-9d1e76581c17b7c18f067ff764493494eb40eeb5787e8c3cb6e5422218802372R214
 when the resultHandler sees that it received all `numPartitions`.


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