-
Notifications
You must be signed in to change notification settings - Fork 359
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CELEBORN-1544][FOLLOWUP] ShuffleWriter needs to catch exception and …
…call abort to avoid memory leaks ### What changes were proposed in this pull request? This PR aims to fix a possible memory leak in ShuffleWriter. Introduce a private abort method, which can be called to release memory when an exception occurs. ### Why are the changes needed? #2661 Call the close method in the finally block, but the close method has `shuffleClient.mapperEnd`, which is dangerous for incomplete tasks, and the data may be inaccurate. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? GA Closes #2663 from cxzl25/CELEBORN-1544-followup. Authored-by: sychen <[email protected]> Signed-off-by: zky.zhoukeyong <[email protected]> (cherry picked from commit bc3bd46) Signed-off-by: zky.zhoukeyong <[email protected]>
- Loading branch information
1 parent
08716da
commit f639be4
Showing
6 changed files
with
59 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters