steveloughran commented on code in PR #4679:
URL: https://github.com/apache/hadoop/pull/4679#discussion_r936465070


##########
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/DelegationTokenRenewer.java:
##########
@@ -256,9 +256,9 @@ public <T extends FileSystem & Renewable> void 
removeRenewAction(
       try {
         action.cancel();
       } catch (InterruptedException ie) {
-        LOG.error("Interrupted while canceling token for " + fs.getUri()
+        LOG.error("Interrupted while canceling token for {} filesystem." + 
fs.getUri()

Review Comment:
   needs to move the fs.geturi to a param, not string concat



##########
hadoop-common-project/hadoop-registry/src/main/java/org/apache/hadoop/registry/server/services/RegistryAdminService.java:
##########
@@ -224,7 +224,7 @@ protected void serviceStart() throws Exception {
           bindingDiagnosticDetails(),
           dumpRegistryRobustly(true));
 
-      LOG.error(" Failure {}", e, e);
+      LOG.error(" Failure {}", e.getMessage(), e);

Review Comment:
   -1. to this change
   
   L227 is valid; it calls e.toString on demand and handles any errors raised. 
the second e forms the stack trace.
   
   *e.getMessage() is null on some exceptions, like NPE*
   
   



-- 
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: common-issues-unsubscr...@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to