azagrebin commented on a change in pull request #11427: [FLINK-15790][k8s] Make 
FlinkKubeClient and its implementations asynchronous
URL: https://github.com/apache/flink/pull/11427#discussion_r406330509
 
 

 ##########
 File path: 
flink-kubernetes/src/test/java/org/apache/flink/kubernetes/KubernetesResourceManagerTest.java
 ##########
 @@ -323,6 +330,18 @@ public void testGetCpuCoresNumSlots() {
                assertThat(resourceManager.getCpuCores(configuration), is(3.0));
        }
 
+       @Test
+       public void testCreateTaskManagerPodFailedAndRetry() throws Exception {
+               flinkKubeClient = spy(createFlinkKubeClient());
+               TestingKubernetesResourceManager testRM = 
createAndStartResourceManager(flinkConfig);
 
 Review comment:
   Not sure, how this would work, `KubernetesResourceManager` creates its own 
`kubeClient` internally, different from `flinkKubeClient`. I would suggest to 
inject `kubeClient` into the constructor of `KubernetesResourceManager` in 
`KubernetesResourceManagerFactory`.
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to