HADOOP-18433. Fix main thread name for . (#4838)

This commit is contained in:
zhengchenyu 2022-11-09 19:18:31 +08:00 committed by GitHub
parent 7002e214b8
commit f68f1a4578
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1393,8 +1393,7 @@ private class Listener extends Thread {
bind(acceptChannel.socket(), address, backlogLength, conf, portRangeConfig);
//Could be an ephemeral port
this.listenPort = acceptChannel.socket().getLocalPort();
Thread.currentThread().setName("Listener at " +
bindAddress + "/" + this.listenPort);
LOG.info("Listener at {}:{}", bindAddress, this.listenPort);
// create a selector;
selector= Selector.open();
readers = new Reader[readThreads];