DDtKey opened a new issue, #5178: URL: https://github.com/apache/arrow-datafusion/issues/5178
**Describe the bug** `DataFrame::write_csv/json/parquet` isn't cancelling safe due to spawned tasks. See these lines: https://github.com/apache/arrow-datafusion/blob/master/datafusion/core/src/physical_plan/file_format/csv.rs#L300-L307 It's actually bad because impossible to wrap such functions to `timeout` or `select!` for example. **To Reproduce** Wrap it to `select` or `timeout` and check that spawned tasks are still working after cancelling by another branch. **Expected behavior** It should be safe-to-cancel these methods. **Additional context** Option to fix: Wrap spawned tasks(i.e `JoinHandle`) to future with `Drop` and call `abort` for them. It won't cancel them immediately, but I believe good enough in this case. -- 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]
