[ 
https://issues.apache.org/jira/browse/HADOOP-16126?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16777310#comment-16777310
 ] 

Hudson commented on HADOOP-16126:
---------------------------------

FAILURE: Integrated in Jenkins build Hadoop-trunk-Commit #16062 (See 
[https://builds.apache.org/job/Hadoop-trunk-Commit/16062/])
HADOOP-16126. ipc.Client.stop() may sleep too long to wait for all (szetszwo: 
rev 0edb0c51dc2c4ae2f353e260f01912e28033d70f)
* (edit) 
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/Client.java


> 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 Nicholas Sze
>            Assignee: Tsz Wo Nicholas Sze
>            Priority: Major
>             Fix For: 3.3.0
>
>         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
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to