shahrs87 commented on a change in pull request #2949:
URL: https://github.com/apache/hbase/pull/2949#discussion_r575409165
##########
File path:
hbase-server/src/main/java/org/apache/hadoop/hbase/master/cleaner/CleanerChore.java
##########
@@ -468,9 +468,14 @@ private boolean deleteAction(Action<Boolean> deletion,
String type, Path dir) {
LOG.debug("Couldn't delete '{}' yet because it isn't empty
w/exception.", dir, exception);
deleted = false;
} catch (IOException ioe) {
- LOG.info("Could not delete {} under {}. might be transient; we'll retry.
if it keeps "
- + "happening, use following exception when asking on mailing list.",
- type, dir, ioe);
+ if (LOG.isTraceEnabled()) {
+ LOG.info("Could not delete {} under {}; will retry. If it keeps
happening, " +
+ "quote the exception when asking on mailing list.", type, dir,
ioe);
+ } else {
+ LOG.info("Could not delete {} under {}; will retry. If it keeps
happening, enable" +
+ "TRACE-level logging and quote the exception when asking on
mailing list.",
+ type, dir, ioe.getMessage());
Review comment:
nit: space between `enable` and `TRACE-level`.
One more concern. I may be wrong in this.` ioe.getMessage()` will be treated
as string and not Throwable. Since we are using string formatter, we need
another `{}` formatter to add exception's message to log.
@saintstack Could you please verify that log is printed as expected ? Thank
you !
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]