You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Dave Brosius (JIRA)" <ji...@apache.org> on 2014/05/12 04:32:14 UTC

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

     [ https://issues.apache.org/jira/browse/CASSANDRA-5635?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dave Brosius updated CASSANDRA-5635:
------------------------------------

    Attachment: 5635.txt

make SlabPoolCleaner thread, a daemon.

> 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
>         Attachments: 5635.txt
>
>
> 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 was sent by Atlassian JIRA
(v6.2#6252)