andygrove opened a new issue, #7738: URL: https://github.com/apache/datafusion-comet/issues/7738
### What is the problem the feature request solves? When a Comet Native Executor cluster runs a query for Spark, the result partitions stay on the cluster executors that produced them, and Spark tasks read them over Arrow Flight. If one of those executors dies before Spark reads its partitions, the results are lost and the Spark job fails. `CometNativeExecutorsRDD` has no dependencies, and each of its partitions keeps the `ResultEndpoint` the scheduler returned when the query was submitted. Spark retries a read task that fails, but every retry reads from the same executor, so the job fails after `spark.task.maxFailures` attempts. Nothing runs the query again. In Spark, a lost shuffle output raises `FetchFailedException`, and the scheduler reruns the map stage that produced it. ### Describe the potential solution When a read fails because its executor is gone, get the lost partitions computed again and read them from wherever they run. Two possible ways: - The driver submits the query again and reads the partitions it has not read yet from the new endpoints. This needs the driver to know which partitions Spark has read, and a query whose results are not deterministic could return rows from two different runs. - The scheduler reruns the stages whose output was on the lost executor, and the driver asks it for the partitions' new endpoints. This keeps the other results but needs the scheduler to rerun stages of a job that has already finished. ### Additional context The limitation is listed under Current limitations in `docs/source/contributor-guide/native_executors.md` (https://github.com/apache/datafusion-comet/pull/7544). Result expiry (`COMET_SCHEDULER_RESULT_RETENTION_SECONDS`) fails a late read the same way. Part of #7288. ### Willingness to contribute Yes. I can contribute this feature independently. -- 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]
