Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-25266][CORE] Fix memory leak in Barrier Execution Mode
## What changes were proposed in this pull request? BarrierCoordinator uses Timer and TimerTask. `TimerTask#cancel()` is invoked in ContextBarrierState#cancelTimerTask but `Timer#purge()` is never invoked. Once a TimerTask is scheduled, the reference to it is not released until `Timer#purge()` is invoked even though `TimerTask#cancel()` is invoked. ## How was this patch tested? I checked the number of instances related to the TimerTask using jmap. Closes apache#22258 from sarutak/fix-barrierexec-oom. Authored-by: sarutak <[email protected]> Signed-off-by: Xiangrui Meng <[email protected]>
- Loading branch information