snuyanzin commented on code in PR #22632:
URL: https://github.com/apache/flink/pull/22632#discussion_r1204214134


##########
flink-runtime/src/test/java/org/apache/flink/runtime/dispatcher/runner/DefaultDispatcherRunnerITCase.java:
##########
@@ -173,8 +175,7 @@ private DispatcherGateway 
electLeaderAndRetrieveGateway(UUID firstLeaderSessionI
      * fail.
      */
     @Test
-    public void 
leaderChange_withBlockingJobManagerTermination_doesNotAffectNewLeader()
-            throws Exception {
+    void 
leaderChange_withBlockingJobManagerTermination_doesNotAffectNewLeader() throws 
Exception {
         final TestingJobMasterServiceLeadershipRunnerFactory 
jobManagerRunnerFactory =
                 new TestingJobMasterServiceLeadershipRunnerFactory(1);
         final TestingCleanupRunnerFactory cleanupRunnerFactory = new 
TestingCleanupRunnerFactory();

Review Comment:
   Here below similar question about `dispatcherRunner` whether we need it or 
not...
   And at the same time there is 
   ```java
   final TestingJobManagerRunner testingJobManagerRunner =
                       jobManagerRunnerFactory.takeCreatedJobManagerRunner();
   ```
   where some resources are opened without closing... may be put it in `try` 
resource



-- 
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