[ 
https://issues.apache.org/jira/browse/HDDS-8715?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Attila Doroszlai updated HDDS-8715:
-----------------------------------
    Target Version/s: 1.4.0, 1.3.1  (was: 1.4.0)

> Hadoop RPC server creation renames current thread
> -------------------------------------------------
>
>                 Key: HDDS-8715
>                 URL: https://issues.apache.org/jira/browse/HDDS-8715
>             Project: Apache Ozone
>          Issue Type: Sub-task
>            Reporter: Attila Doroszlai
>            Assignee: Attila Doroszlai
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.4.0
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to