HDFS-11932. BPServiceActor thread name is not correctly set. Contributed by Chen Liang.

This commit is contained in:
Arpit Agarwal 2017-06-06 13:51:02 -07:00
parent 536f057158
commit 867903db2b
2 changed files with 3 additions and 3 deletions

View File

@ -189,8 +189,8 @@ String getBlockPoolId() {
if (bpNSInfo != null) {
return bpNSInfo.getBlockPoolID();
} else {
LOG.warn("Block pool ID needed, but service not yet registered with NN",
new Exception("trace"));
LOG.warn("Block pool ID needed, but service not yet registered with " +
"NN, trace:", new Exception());
return null;
}
} finally {

View File

@ -541,7 +541,7 @@ void start() {
//Thread is started already
return;
}
bpThread = new Thread(this, formatThreadName("heartbeating", nnAddr));
bpThread = new Thread(this);
bpThread.setDaemon(true); // needed for JUnit testing
bpThread.start();