[
https://issues.apache.org/jira/browse/BEAM-5797?focusedWorklogId=157325&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-157325
]
ASF GitHub Bot logged work on BEAM-5797:
----------------------------------------
Author: ASF GitHub Bot
Created on: 23/Oct/18 02:21
Start Date: 23/Oct/18 02:21
Worklog Time Spent: 10m
Work Description: tweise closed pull request #6779: [BEAM-5797] Ensure
bundle factory and stage context are closed on dispose()
URL: https://github.com/apache/beam/pull/6779
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git
a/runners/flink/src/main/java/org/apache/beam/runners/flink/translation/wrappers/streaming/ExecutableStageDoFnOperator.java
b/runners/flink/src/main/java/org/apache/beam/runners/flink/translation/wrappers/streaming/ExecutableStageDoFnOperator.java
index ee49ef451db..2135d5a8285 100644
---
a/runners/flink/src/main/java/org/apache/beam/runners/flink/translation/wrappers/streaming/ExecutableStageDoFnOperator.java
+++
b/runners/flink/src/main/java/org/apache/beam/runners/flink/translation/wrappers/streaming/ExecutableStageDoFnOperator.java
@@ -162,13 +162,14 @@ private StateRequestHandler
getStateRequestHandler(ExecutableStage executableSta
@Override
public void dispose() throws Exception {
- // DoFnOperator generates another "bundle" for the final watermark
- super.dispose();
// Remove the reference to stageContext and make stageContext available
for garbage collection.
try (@SuppressWarnings("unused")
AutoCloseable bundleFactoryCloser = stageBundleFactory;
@SuppressWarnings("unused")
- AutoCloseable closable = stageContext) {}
+ AutoCloseable closable = stageContext) {
+ // DoFnOperator generates another "bundle" for the final watermark --
see BEAM-5816 for more context
+ super.dispose();
+ }
stageContext = null;
}
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 157325)
Time Spent: 1h 10m (was: 1h)
> SDK workers are not always killed when Flink pipeline finishes
> --------------------------------------------------------------
>
> Key: BEAM-5797
> URL: https://issues.apache.org/jira/browse/BEAM-5797
> Project: Beam
> Issue Type: Bug
> Components: runner-flink
> Reporter: Micah Wylde
> Priority: Major
> Labels: portability-flink
> Time Spent: 1h 10m
> Remaining Estimate: 0h
>
> Beam python workers are spun up as part of a pipeline execution, and killed
> once that pipeline has been cancelled or failed. However, in some situations
> we see the workers hanging around indefinitely until they are manually killed
> or the taskmanager is restarted. The behavior seems to only occur with
> streaming pipelines, and appearsĀ non-deterministic
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)