You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Wei-Chiu Chuang (Jira)" <ji...@apache.org> on 2019/10/02 23:57:00 UTC

[jira] [Updated] (HADOOP-16126) ipc.Client.stop() may sleep too long to wait for all connections

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

Wei-Chiu Chuang updated HADOOP-16126:
-------------------------------------
    Fix Version/s: 3.2.2
                   3.1.4

> ipc.Client.stop() may sleep too long to wait for all connections
> ----------------------------------------------------------------
>
>                 Key: HADOOP-16126
>                 URL: https://issues.apache.org/jira/browse/HADOOP-16126
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: ipc
>            Reporter: Tsz-wo Sze
>            Assignee: Tsz-wo Sze
>            Priority: Major
>             Fix For: 2.10.0, 3.3.0, 2.8.6, 2.9.3, 3.1.4, 3.2.2
>
>         Attachments: c16126_20190219.patch, c16126_20190220.patch, c16126_20190221.patch
>
>
> {code}
> //Client.java
>   public void stop() {
>     ...
>     // wait until all connections are closed
>     while (!connections.isEmpty()) {
>       try {
>         Thread.sleep(100);
>       } catch (InterruptedException e) {
>       }
>     }
>     ...
>   }
> {code}
> In the code above, the sleep time is 100ms.  We found that simply changing the sleep time to 10ms could improve a Hive job running time by 10x.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org