wangyang0918 commented on a change in pull request #18854: URL: https://github.com/apache/flink/pull/18854#discussion_r826665717
########## File path: flink-kubernetes/src/test/java/org/apache/flink/kubernetes/kubeclient/Fabric8FlinkKubeClientTest.java ########## @@ -250,6 +243,32 @@ public void testCreateFlinkTaskManagerPod() throws Exception { resultTaskManagerPod.getMetadata().getOwnerReferences().get(0).getUid()); } + @Test + public void testCreateTwoTaskManagerPods() throws Exception { + flinkKubeClient.createJobManagerComponent(this.kubernetesJobManagerSpecification); + flinkKubeClient.createTaskManagerPod(buildKubernetesPod("mock-task-manager-pod1")).get(); + mockGetDeploymentWithError(); + try { + flinkKubeClient + .createTaskManagerPod(buildKubernetesPod("mock-task-manager-pod2")) + .get(); + } catch (Exception e) { + fail("should only get the master deployment once"); + } + } + + @NotNull Review comment: Unnecessary `NotNull`. -- 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: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org