danny0405 commented on code in PR #10345:
URL: https://github.com/apache/hudi/pull/10345#discussion_r1429435343


##########
hudi-common/src/main/java/org/apache/hudi/common/util/collection/LazyFileIterable.java:
##########
@@ -128,7 +132,10 @@ private void closeHandle() {
     }
 
     private void addShutdownHook() {
-      shutdownThread = new Thread(this::closeHandle);
+      shutdownThread = new Thread(() -> {
+        LOG.warn("Failed to properly close LazyFileIterable in application.");

Review Comment:
   Another choice is we naming the thread with a proper name.



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

Reply via email to