You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ga...@apache.org on 2022/03/02 06:42:43 UTC
[flink] branch master updated: [FLINK-25243][k8s] Increase the k8s transactional operation max retries in the integration tests to make the tests more stable
This is an automated email from the ASF dual-hosted git repository.
gaoyunhaii pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/master by this push:
new 152ad4f [FLINK-25243][k8s] Increase the k8s transactional operation max retries in the integration tests to make the tests more stable
152ad4f is described below
commit 152ad4fc14920372076c0004793c179141ae10c7
Author: wangyang0918 <da...@alibaba-inc.com>
AuthorDate: Wed Feb 23 10:07:36 2022 +0800
[FLINK-25243][k8s] Increase the k8s transactional operation max retries in the integration tests to make the tests more stable
This closes #18891.
---
.../src/test/java/org/apache/flink/kubernetes/KubernetesResource.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/flink-kubernetes/src/test/java/org/apache/flink/kubernetes/KubernetesResource.java b/flink-kubernetes/src/test/java/org/apache/flink/kubernetes/KubernetesResource.java
index c53bfd2..05c6dca 100644
--- a/flink-kubernetes/src/test/java/org/apache/flink/kubernetes/KubernetesResource.java
+++ b/flink-kubernetes/src/test/java/org/apache/flink/kubernetes/KubernetesResource.java
@@ -36,6 +36,7 @@ import org.junit.rules.ExternalResource;
public class KubernetesResource extends ExternalResource {
private static final String CLUSTER_ID = "flink-itcase-cluster";
+ private static final int KUBERNETES_TRANSACTIONAL_OPERATION_MAX_RETRIES = 100;
private static String kubeConfigFile;
private Configuration configuration;
@@ -56,6 +57,9 @@ public class KubernetesResource extends ExternalResource {
configuration = new Configuration();
configuration.set(KubernetesConfigOptions.KUBE_CONFIG_FILE, kubeConfigFile);
configuration.setString(KubernetesConfigOptions.CLUSTER_ID, CLUSTER_ID);
+ configuration.set(
+ KubernetesConfigOptions.KUBERNETES_TRANSACTIONAL_OPERATION_MAX_RETRIES,
+ KUBERNETES_TRANSACTIONAL_OPERATION_MAX_RETRIES);
final FlinkKubeClientFactory kubeClientFactory = new FlinkKubeClientFactory();
flinkKubeClient = kubeClientFactory.fromConfiguration(configuration, "testing");
}