Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the help reviewing the code, I will fix it.

+ "filesystem");
LOG.debug("Exception in removeRenewAction: {}", ie);
LOG.debug("Exception in removeRenewAction.", ie);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ protected void serviceStart() throws Exception {
bindingDiagnosticDetails(),
dumpRegistryRobustly(true));

LOG.error(" Failure {}", e, e);
LOG.error(" Failure {}", e.getMessage(), e);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will revert it.

LOG.error(message);

// TODO: this is something temporary to deal with the problem
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public YarnServiceClient() {
try {
asc = new ApiServiceClient(conf);
} catch (Exception e) {
LOG.error("Error initialize YARN Service Client: {}", e);
LOG.error("Error initialize YARN Service Client.", e);
}
}

Expand Down