akalash commented on a change in pull request #17701:
URL: https://github.com/apache/flink/pull/17701#discussion_r747524985
##########
File path:
flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/StreamTask.java
##########
@@ -978,6 +998,18 @@ private void shutdownAsyncThreads() throws Exception {
}
}
+ private static Closeable toCloseable(AutoCloseable autoCloseable) {
+ return () -> {
+ try {
+ autoCloseable.close();
+ } catch (IOException ex) {
+ throw ex;
+ } catch (Exception exception) {
+ rethrow(exception);
+ }
+ };
+ }
+
Review comment:
I have updated the PR with new implementation
--
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]