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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

JIRA jira@apache.org
Tsz Wo Nicholas Sze created HADOOP-16126:
--------------------------------------------

             Summary: 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


{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: [hidden email]
For additional commands, e-mail: [hidden email]