Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
HDFS-13566 added code in IPC Listener to rename the current thread:
Listener(int port) throws IOException { address = new InetSocketAddress(bindAddress, port); // Create a new server socket and set to non blocking mode acceptChannel = ServerSocketChannel.open(); acceptChannel.configureBlocking(false); acceptChannel.setOption(StandardSocketOptions.SO_REUSEADDR, reuseAddr); // Bind the server socket to the local host and port 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);
Listener is a Thread object, being created in an another thread. The result is that the other thread (usually the main thread) is renamed to Listener at ....
This has been fixed by HADOOP-18433, but only for Hadoop 3.4.0. Currently being backported to 3.3 line.
The goal of this task is to work around this bug in Ozone until we can upgrade to a Hadoop release with the fix.
Attachments
Issue Links
- links to