-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BEAM-9474] Improve robustness of BundleFactory and ProcessEnvironment
The cleanup code in DefaultJobBundleFactory and its RemoteEnvironments may leak resources. This is especially a concern when the execution engines reuses the same JVM or underlying machines for multiple runs of a pipeline. Exceptions encountered during cleanup should not lead to aborting the cleanup procedure. Not all code handles this correctly. We should also ensure that the cleanup succeeds even if the runner does not properly close the bundle, e.g. when a exception occurs during closing the bundle.
- Loading branch information
Showing
3 changed files
with
128 additions
and
51 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