1996fanrui opened a new pull request, #824: URL: https://github.com/apache/flink-kubernetes-operator/pull/824
## What is the purpose of the change Autoscaler Standalone will fetch job list, and scale them. In general, autoscaler has some cache in memory. Autoscaler Standalone should clean up them if some jobs cannot be fetched anymore. ## Brief change log - [FLINK-34212][autoscaler] Autoscaler Standalone cleans up stopped jobs to prevent memory leaks - We assume one job is stopped when one job is fetched in the last control loop and it cannot be fetched in current control loop. ## Verifying this change - Added `testCleanupAfterStopped` & `testCleanupForStoppedJobAfterScaling` in StandaloneAutoscalerExecutorTest class ## Does this pull request potentially affect one of the following parts: - Dependencies (does it add or upgrade a dependency): no - The public API, i.e., is any changes to the `CustomResourceDescriptors`: no - Core observer or reconciler logic that is regularly executed: no ## Documentation - Does this pull request introduce a new feature? no - If yes, how is the feature documented? not documented -- 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