lmccay commented on code in PR #506:
URL: https://github.com/apache/incubator-livy/pull/506#discussion_r2710345796


##########
rsc/src/main/java/org/apache/livy/rsc/ContextLauncher.java:
##########
@@ -436,36 +422,34 @@ public void detach() {
       try {
         monitor.join(conf.getTimeAsMs(CLIENT_SHUTDOWN_TIMEOUT));
       } catch (InterruptedException ie) {
-        LOG.debug("Interrupted before driver thread was finished.");
+        LOG.debug("Interrupted before driver thread was finished.", ie);
       }
     }
 
     private Thread monitor(final Runnable task, int childId) {
-      Runnable wrappedTask = new Runnable() {
-        @Override
-        public void run() {
-          try {
-            task.run();
-          } finally {
-            confFile.delete();
-          }
+      Runnable wrappedTask = () -> {
+        try {
+          task.run();
+        } finally {
+          boolean ignored = confFile.delete();

Review Comment:
   Remove it or replace it with logging which will actually do something. It is 
not an existing practice in that file to add local vars that have no value and 
that may look like a bug. I can see a log message at least adding value in case 
it failed to delete.



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