HADOOP-18433. Fix main thread name for . (#4838)
This commit is contained in:
parent
7002e214b8
commit
f68f1a4578
@ -1393,8 +1393,7 @@ private class Listener extends Thread {
|
|||||||
bind(acceptChannel.socket(), address, backlogLength, conf, portRangeConfig);
|
bind(acceptChannel.socket(), address, backlogLength, conf, portRangeConfig);
|
||||||
//Could be an ephemeral port
|
//Could be an ephemeral port
|
||||||
this.listenPort = acceptChannel.socket().getLocalPort();
|
this.listenPort = acceptChannel.socket().getLocalPort();
|
||||||
Thread.currentThread().setName("Listener at " +
|
LOG.info("Listener at {}:{}", bindAddress, this.listenPort);
|
||||||
bindAddress + "/" + this.listenPort);
|
|
||||||
// create a selector;
|
// create a selector;
|
||||||
selector= Selector.open();
|
selector= Selector.open();
|
||||||
readers = new Reader[readThreads];
|
readers = new Reader[readThreads];
|
||||||
|
Loading…
Reference in New Issue
Block a user