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

(cherry picked from commit f68f1a4578)

Co-authored-by: zhengchenyu <zhengchenyu16@gmail.com>
This commit is contained in:
Doroszlai, Attila 2023-06-05 07:51:53 +02:00 committed by GitHub
parent c9f2c45209
commit 60b37bbdf7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1284,8 +1284,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];