HBASE-17817 add table name to output (if available) when removing coprocessors
Amending-Author: Sean Busbey <busbey@apache.org> Signed-off-by: Sean Busbey <busbey@apache.org>
This commit is contained in:
parent
5411d3ecb1
commit
635c9db815
|
@ -601,8 +601,15 @@ public abstract class CoprocessorHost<E extends CoprocessorEnvironment> {
|
||||||
// server is configured to abort.
|
// server is configured to abort.
|
||||||
abortServer(env, e);
|
abortServer(env, e);
|
||||||
} else {
|
} else {
|
||||||
LOG.error("Removing coprocessor '" + env.toString() + "' from " +
|
// If available, pull a table name out of the environment
|
||||||
"environment because it threw: " + e,e);
|
if(env instanceof RegionCoprocessorEnvironment) {
|
||||||
|
String tableName = ((RegionCoprocessorEnvironment)env).getRegionInfo().getTable().getNameAsString();
|
||||||
|
LOG.error("Removing coprocessor '" + env.toString() + "' from table '"+ tableName + "'", e);
|
||||||
|
} else {
|
||||||
|
LOG.error("Removing coprocessor '" + env.toString() + "' from " +
|
||||||
|
"environment",e);
|
||||||
|
}
|
||||||
|
|
||||||
coprocessors.remove(env);
|
coprocessors.remove(env);
|
||||||
try {
|
try {
|
||||||
shutdown(env);
|
shutdown(env);
|
||||||
|
|
Loading…
Reference in New Issue