dmvk commented on a change in pull request #18238:
URL: https://github.com/apache/flink/pull/18238#discussion_r776615258
##########
File path:
flink-runtime/src/main/java/org/apache/flink/runtime/taskexecutor/TaskManagerRunner.java
##########
@@ -382,6 +382,21 @@ public static int runTaskManager(Configuration
configuration, PluginManager plug
configuration,
pluginManager,
TaskManagerRunner::createTaskExecutorService);
+ Runtime.getRuntime()
+ .addShutdownHook(
+ new Thread(
+ new Runnable() {
+ @Override
+ public void run() {
+ try {
+ synchronized (this) {
+ taskManagerRunner.close();
+ }
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ }));
Review comment:
this will be removed, it belongs to another story, but was useful for
manual testing here
--
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]