You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2023/05/28 18:48:00 UTC
[jira] [Updated] (HDDS-8715) Hadoop RPC server creation renames current thread
[ https://issues.apache.org/jira/browse/HDDS-8715?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated HDDS-8715:
---------------------------------
Labels: pull-request-available (was: )
> 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
> Priority: Major
> Labels: pull-request-available
>
> 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-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org