plugatarev commented on code in PR #811:
URL: 
https://github.com/apache/flink-kubernetes-operator/pull/811#discussion_r1555135563


##########
flink-autoscaler-standalone/src/main/java/org/apache/flink/autoscaler/standalone/StandaloneAutoscalerEntrypoint.java:
##########
@@ -60,9 +60,11 @@ public static <KEY, Context extends 
JobAutoScalerContext<KEY>> void main(String[
 
         var autoScaler = createJobAutoscaler(eventHandler, stateStore);
 
-        var autoscalerExecutor =
-                new StandaloneAutoscalerExecutor<>(conf, jobListFetcher, 
eventHandler, autoScaler);
-        autoscalerExecutor.start();
+        try (var autoscalerExecutor =
+                new StandaloneAutoscalerExecutor<>(
+                        conf, jobListFetcher, eventHandler, autoScaler)) {
+            autoscalerExecutor.start();
+        }

Review Comment:
   Yes, you are right



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

Reply via email to