ankurdave commented on pull request #34245:
URL: https://github.com/apache/spark/pull/34245#issuecomment-948860753


   I think I know why this is happening. The task completion listener that 
closes the vectorized reader is registered *lazily* in 
`ParquetFileFormat#buildReaderWithPartitionValues()`. Since task completion 
listeners are executed in reverse order of registration, it always runs before 
the writer thread can be interrupted.
   
   I didn't realize this was the case, and it contradicts the assumption in 
this PR that task completion listeners are registered bottom-up.
   
   I'll submit a new PR to fix this.


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