Github user StefanRRichter commented on a diff in the pull request:
https://github.com/apache/flink/pull/5239#discussion_r170228635
--- Diff:
flink-runtime/src/main/java/org/apache/flink/runtime/state/TaskExecutorLocalStateStoresManager.java
---
@@ -89,6 +90,22 @@ public TaskExecutorLocalStateStoresManager(
}
}
}
+
+ // install a shutdown hook
+ this.shutdownHook = new
Thread("TaskExecutorLocalStateStoresManager shutdown hook") {
--- End diff --
I made a separate commit that introduces `ShudownHookUtil`. Used it to
deduplicated the same code in like 20 places...
---