HDFS-11932. BPServiceActor thread name is not correctly set. Contributed by Chen Liang.
This commit is contained in:
parent
536f057158
commit
867903db2b
|
@ -189,8 +189,8 @@ class BPOfferService {
|
||||||
if (bpNSInfo != null) {
|
if (bpNSInfo != null) {
|
||||||
return bpNSInfo.getBlockPoolID();
|
return bpNSInfo.getBlockPoolID();
|
||||||
} else {
|
} else {
|
||||||
LOG.warn("Block pool ID needed, but service not yet registered with NN",
|
LOG.warn("Block pool ID needed, but service not yet registered with " +
|
||||||
new Exception("trace"));
|
"NN, trace:", new Exception());
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
|
|
|
@ -541,7 +541,7 @@ class BPServiceActor implements Runnable {
|
||||||
//Thread is started already
|
//Thread is started already
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
bpThread = new Thread(this, formatThreadName("heartbeating", nnAddr));
|
bpThread = new Thread(this);
|
||||||
bpThread.setDaemon(true); // needed for JUnit testing
|
bpThread.setDaemon(true); // needed for JUnit testing
|
||||||
bpThread.start();
|
bpThread.start();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue