Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-42668][SS] Catch exception while trying to close compressed st…
…ream in HDFSStateStoreProvider abort ### What changes were proposed in this pull request? We have seen some cases where the task exits as cancelled/failed which triggers the abort in the task completion listener for HDFSStateStoreProvider. As part of this, we cancel the backing stream and close the compressed stream. However, different stores such as Azure blob store could throw exceptions which are not caught in the current path, leading to job failures. This change proposes to fix this issue by catching all non fatal exceptions thrown by cancel/close. ### Why are the changes needed? Changes are required to avoid job failures due to exceptions thrown by output stream handlers on abort with the HDFSStateStoreProvider. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Modified a test and simulated a NPE in the abort path and verified that the task and thereby the job fails before this change. After the change, the test passes fine. Closes apache#40273 from anishshri-db/task/SPARK-42668. Authored-by: Anish Shrigondekar <[email protected]> Signed-off-by: Jungtaek Lim <[email protected]>
- Loading branch information