cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Stupp (JIRA)" <>
Subject [jira] [Created] (CASSANDRA-5635) ThriftServer.stop() hangs forever
Date Thu, 13 Jun 2013 15:02:20 GMT
Robert Stupp created CASSANDRA-5635:

             Summary: ThriftServer.stop() hangs forever
                 Key: CASSANDRA-5635
             Project: Cassandra
          Issue Type: Bug
          Components: Core
    Affects Versions: 1.2.4
            Reporter: Robert Stupp

I've written a very small main() method just to start to test "how to embed Cassandra". But
the code hangs while executing CassandraDaemon.stop()...
I've used a default {{cassandra.yaml}} file.

cassandraDaemon = new CassandraDaemon();

{{CassandraDaemon.stop()}} calls {{ThriftServer.stop()}, which ends somehow in {{TCustomServerSocket.close()}},
which sets its field {{serverSocket=null}}. This causes {{CustomTThreadPoolServer.server()}}
to loop forever, because it's {{stopped}} field is still {{false}} - {{TServerTransport.accept()}}
immediatly throws a {{TTransportException}} because {{TCustomServerSocket}}'s {{serverSocket}}
is {{null}}.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message