westonpace opened a new pull request, #13651: URL: https://github.com/apache/arrow/pull/13651
The ExecPlan::AddTask variant that takes a future was problematic because a future is not created until a task has already been started and, if the task group was already ended, it wasn't tracking the future. So work would be started that would not be tracked anywhere and the plan was ending prematurely. As a fix I changed that AddTask variant to BeginExternalTask. This method will request permission to start the task before the future is created. At some point the scanner should be moved to an exec plan instead of async generators and I think BeginExternalTask can go away. -- 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]
