Attila Doroszlai created HDDS-8715:
--------------------------------------

             Summary: Hadoop RPC server creation renames current thread
                 Key: HDDS-8715
                 URL: https://issues.apache.org/jira/browse/HDDS-8715
             Project: Apache Ozone
          Issue Type: Task
            Reporter: Attila Doroszlai
            Assignee: Attila Doroszlai


HDFS-13566 added code in IPC {{Listener}} to rename the current thread:

{code:title=https://github.com/apache/hadoop/blob/c2385c021bafc521ca6c8c8037351192a97c126c/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/Server.java#L1276-L1288}
    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);
{code}

{{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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@ozone.apache.org
For additional commands, e-mail: issues-h...@ozone.apache.org

Reply via email to