HDFS-11932. BPServiceActor thread name is not correctly set. Contributed by Chen Liang.
This commit is contained in:
parent
974f33add2
commit
df7d952f12
|
@ -189,8 +189,8 @@ class BPOfferService {
|
|||
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 {
|
||||
|
|
|
@ -541,7 +541,7 @@ class BPServiceActor implements Runnable {
|
|||
//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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue