HBASE-22106 Better log message when failing to load coprocessor

Signed-off-by: Josh Elser <elserj@apache.org>
This commit is contained in:
Ankit Singhal 2019-04-10 12:58:32 -04:00 committed by Josh Elser
parent 055a47e5c3
commit 01f8e1eaa3
1 changed files with 4 additions and 4 deletions

View File

@ -284,8 +284,8 @@ public class RegionCoprocessorHost
null : new Path(matcher.group(1).trim());
String className = matcher.group(2).trim();
if (className.isEmpty()) {
LOG.error("Malformed table coprocessor specification: key=" +
key + ", spec: " + spec);
LOG.error("Malformed table coprocessor specification, Class name is empty: key=" + key
+ ", spec: " + spec);
continue;
}
int priority = matcher.group(3).trim().isEmpty() ?
@ -315,8 +315,8 @@ public class RegionCoprocessorHost
", spec: " + spec);
}
} catch (Exception ioe) {
LOG.error("Malformed table coprocessor specification: key=" + key +
", spec: " + spec);
LOG.error("Malformed table coprocessor specification: key=" + key + ", spec: " + spec,
ioe);
}
}
}