HBASE-10911 ServerShutdownHandler#toString shows meaningless message
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1585576 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4b762ee841
commit
78cf844cf3
|
@ -198,15 +198,6 @@ public class MetaServerShutdownHandler extends ServerShutdownHandler {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
String name = "UnknownServerName";
|
|
||||||
if(server != null && server.getServerName() != null) {
|
|
||||||
name = server.getServerName().toString();
|
|
||||||
}
|
|
||||||
return getClass().getSimpleName() + "-" + name + "-" + getSeqid();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void handleException(Throwable t) {
|
protected void handleException(Throwable t) {
|
||||||
int count = eventExceptionCount.getAndIncrement();
|
int count = eventExceptionCount.getAndIncrement();
|
||||||
|
|
|
@ -108,11 +108,7 @@ public class ServerShutdownHandler extends EventHandler {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
String name = "UnknownServerName";
|
return getClass().getSimpleName() + "-" + serverName + "-" + getSeqid();
|
||||||
if(server != null && server.getServerName() != null) {
|
|
||||||
name = server.getServerName().toString();
|
|
||||||
}
|
|
||||||
return getClass().getSimpleName() + "-" + name + "-" + getSeqid();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue