Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-8719 Improve thread names
  3. HDDS-8715

Hadoop RPC server creation renames current thread

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.4.0
    • 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

          Activity

            People

              adoroszlai Attila Doroszlai
              adoroszlai Attila Doroszlai
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: