hvanhovell opened a new pull request, #36751: URL: https://github.com/apache/spark/pull/36751
### What changes were proposed in this pull request? This PR removes the unlocking of write locks on task end from the `BlockInfoManager`. ### Why are the changes needed? The `BlockInfoManager` releases all locks held by a task when the task is done. It also release write locks, the problem with that is that a thread (other than the main task thread) might still be modifying the block. By releasing it the block now seems readable, and a reader might observe a block in a partial or non-existent state. This is a follow-up for https://github.com/apache/spark/pull/35991. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Existing tests should pass. I can add a tests if folks are onboard with 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]
