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
Use ExperimentalOptions.addExperiment() instead of get/set pattern in Java
Replaces getExperiments()/modify/setExperiments() boilerplate with
ExperimentalOptions.addExperiment() which handles null-init and deduplication.
Resolves#19347
Copy file name to clipboardExpand all lines: runners/google-cloud-dataflow-java/src/main/java/org/apache/beam/runners/dataflow/DataflowPipelineTranslator.java
@@ -1260,21 +1258,10 @@ public DataflowPipelineJob run(Pipeline pipeline) {
1260
1258
thrownewIllegalArgumentException(
1261
1259
"Runner V2 both disabled and enabled: at least one of ['beam_fn_api', 'use_unified_worker', 'use_runner_v2', 'use_portable_job_submission'] is set and also one of ['disable_runner_v2', 'disable_runner_v2_until_2023', 'disable_prime_runner_v2'] is set.");
1262
1260
}
1263
-
List<String> experiments =
1264
-
newArrayList<>(options.getExperiments()); // non-null if useUnifiedWorker is true
1265
-
if (!experiments.contains("use_runner_v2")) {
1266
-
experiments.add("use_runner_v2");
1267
-
}
1268
-
if (!experiments.contains("use_unified_worker")) {
1269
-
experiments.add("use_unified_worker");
1270
-
}
1271
-
if (!experiments.contains("beam_fn_api")) {
1272
-
experiments.add("beam_fn_api");
1273
-
}
1274
-
if (!experiments.contains("use_portable_job_submission")) {
Copy file name to clipboardExpand all lines: runners/google-cloud-dataflow-java/worker/src/main/java/org/apache/beam/runners/dataflow/worker/windmill/client/grpc/GrpcWindmillServer.java
0 commit comments