accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Elser (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ACCUMULO-3478) TServerUtils.startServer expects to receive BindException when port is already taken
Date Wed, 14 Jan 2015 04:54:34 GMT
Josh Elser created ACCUMULO-3478:
------------------------------------

             Summary: TServerUtils.startServer expects to receive BindException when port
is already taken
                 Key: ACCUMULO-3478
                 URL: https://issues.apache.org/jira/browse/ACCUMULO-3478
             Project: Accumulo
          Issue Type: Bug
          Components: master, tserver
    Affects Versions: 1.6.1, 1.6.0, 1.5.2, 1.5.1, 1.5.0
            Reporter: Josh Elser
            Assignee: Josh Elser
             Fix For: 1.5.3, 1.6.2, 1.7.0


When a thrift server is configured to use a fixed port, we will loop 100 times trying to bind
to the port which is (likely) going to stay bound. Because the server socket is setting SO_REUSEADDR,
we shouldn't have issues where the previous application has died/gone-away, but being unable
to bind to it.

If we're explicitly given a port to start the thrift server on, and are unable to start it,
I think it would be better to throw an exception which would kill the process instead of retrying
at least 25 seconds first.

Because we've already copied TNonblockingServerSocket, we can modify the TTransportException
thrown with a more meaningful exception and work on getting better semantics in upstream thrift
(if necessary).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message