You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGES.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,6 +75,7 @@
75
75
## Breaking Changes
76
76
77
77
* (Python) Removed `google-perftools` from the SDK container images. Users who wish to use `--profiler_agent=tcmalloc` should install google-perftools APT package in their custom container images separately ([#39323](https://github.com/apache/beam/issues/39323)).
78
+
* (Java) Added `DRAINING` and `DRAINED` states to `PipelineResult`, including runner state mappings and Dataflow update handling ([#39020](https://github.com/apache/beam/issues/39020)).
Copy file name to clipboardExpand all lines: runners/google-cloud-dataflow-java/src/main/java/org/apache/beam/runners/dataflow/DataflowPipelineJob.java
Copy file name to clipboardExpand all lines: runners/google-cloud-dataflow-java/src/main/java/org/apache/beam/runners/dataflow/util/MonitoringUtil.java
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -221,17 +221,19 @@ public static State toState(@Nullable String stateName) {
221
221
returnState.CANCELLED;
222
222
case"JOB_STATE_UPDATED":
223
223
returnState.UPDATED;
224
+
case"JOB_STATE_DRAINING":
225
+
returnState.DRAINING;
226
+
case"JOB_STATE_DRAINED":
227
+
returnState.DRAINED;
224
228
225
229
case"JOB_STATE_RUNNING":
226
230
case"JOB_STATE_PENDING": // Job has not yet started; closest mapping is RUNNING
227
-
case"JOB_STATE_DRAINING": // Job is still active; the closest mapping is RUNNING
228
231
case"JOB_STATE_CANCELLING": // Job is still active; the closest mapping is RUNNING
229
232
case"JOB_STATE_PAUSING": // Job is still active; the closest mapping is RUNNING
230
233
case"JOB_STATE_RESOURCE_CLEANING_UP": // Job is still active; the closest mapping is RUNNING
231
234
returnState.RUNNING;
232
235
233
236
case"JOB_STATE_DONE":
234
-
case"JOB_STATE_DRAINED": // Job has successfully terminated; closest mapping is DONE
Copy file name to clipboardExpand all lines: runners/google-cloud-dataflow-java/src/test/java/org/apache/beam/runners/dataflow/DataflowPipelineJobTest.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -417,7 +417,7 @@ public void testDrainUnterminatedJobThatSucceeds() throws IOException {
Copy file name to clipboardExpand all lines: runners/google-cloud-dataflow-java/src/test/java/org/apache/beam/runners/dataflow/util/MonitoringUtilTest.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -100,9 +100,9 @@ public void testToStateNormal() {
0 commit comments