geode-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Smith (JIRA)" <>
Subject [jira] [Created] (GEODE-858) InternalLocator.startTcpServer has a 1 second sleep
Date Tue, 26 Jan 2016 00:50:39 GMT
Dan Smith created GEODE-858:

             Summary: InternalLocator.startTcpServer has a 1 second sleep
                 Key: GEODE-858
             Project: Geode
          Issue Type: Bug
            Reporter: Dan Smith

This method has a 1 second sleep. Looking at the code, there doesn't seem to be any reason
to sleep. server.start has already created the tcp socket for the server, so clients should
be able to connect after that call has done. They will wait until the acceptor thread invokes
accept, but that seems reasonable. 

The issue with this sleep is that all of our WAN tests (several hundred) start multiple locators
in each test, so this adds a lot of time to our WAN tests.

private void startTcpServer() throws IOException {, this));
    try { 
    catch (InterruptedException ie) {
      // always safe to exit this thread...
      logger.warn(LocalizedMessage.create(LocalizedStrings.ONE_ARG, "Interrupted"), ie);

This message was sent by Atlassian JIRA

View raw message