becketqin commented on code in PR #25584:
URL: https://github.com/apache/beam/pull/25584#discussion_r1113745707


##########
gradle.properties:
##########
@@ -38,5 +38,5 @@ javaVersion=1.8
 docker_image_default_repo_root=apache
 docker_image_default_repo_prefix=beam_
 
-flink_versions=1.12,1.13,1.14,1.15
+flink_versions=1.12,1.13,1.14,1.15,1.16

Review Comment:
   I am wondering what is the current strategy of supported Flink versions. Are 
we only keeping 4 versions at the moment? Ping @mxm @angoenka 



##########
runners/flink/1.16/build.gradle:
##########
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * License); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+def basePath = '..'
+
+/* All properties required for loading the Flink build script */
+project.ext {
+  // Set the version of all Flink-related dependencies here.
+  flink_version = '1.16.0'
+  // Version specific code overrides.
+  main_source_overrides = ["${basePath}/1.12/src/main/java", 
"${basePath}/1.13/src/main/java", "${basePath}/1.14/src/main/java", 
"${basePath}/1.15/src/main/java", './src/main/java']
+  test_source_overrides = ["${basePath}/1.12/src/test/java", 
"${basePath}/1.13/src/test/java", "${basePath}/1.14/src/test/java", 
"${basePath}/1.15/src/main/java", './src/test/java']

Review Comment:
   Should be `"${basePath}/1.15/src/test/java"` instead of 
`"${basePath}/1.15/src/main/java"`. With this, the `MiniClusterCompat` class 
can be removed.



##########
runners/flink/1.16/src/test/java/org/apache/beam/runners/flink/MiniClusterCompat.java:
##########
@@ -0,0 +1,30 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.beam.runners.flink;
+
+import java.util.concurrent.CompletableFuture;
+import org.apache.flink.api.common.JobID;
+import org.apache.flink.core.execution.SavepointFormatType;
+import org.apache.flink.runtime.minicluster.MiniCluster;
+
+public class MiniClusterCompat {

Review Comment:
   It looks like we don't need this test source override as it is exactly the 
same as the one in flink 1.15?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to