You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Robert Stupp (JIRA)" <ji...@apache.org> on 2013/06/13 17:02:20 UTC

[jira] [Created] (CASSANDRA-5635) ThriftServer.stop() hangs forever

Robert Stupp created CASSANDRA-5635:
---------------------------------------

             Summary: ThriftServer.stop() hangs forever
                 Key: CASSANDRA-5635
                 URL: https://issues.apache.org/jira/browse/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.

{noformat}
cassandraDaemon = new CassandraDaemon();
cassandraDaemon.init(null);
cassandraDaemon.start();
cassandraDaemon.stop();
{noformat}

{{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: http://www.atlassian.com/software/jira