You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Lyuben Todorov (JIRA)" <ji...@apache.org> on 2014/07/23 13:22:39 UTC
[jira] [Updated] (CASSANDRA-7595) EmbeddedCassandraService class
should provide a stop method
[ https://issues.apache.org/jira/browse/CASSANDRA-7595?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lyuben Todorov updated CASSANDRA-7595:
--------------------------------------
Attachment: 7595.diff
Attaching patch that should apply cleanly to trunk, cassandra-2.1, cassandra-2.0 and cassandra-1.2.
> EmbeddedCassandraService class should provide a stop method
> -----------------------------------------------------------
>
> Key: CASSANDRA-7595
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7595
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Reporter: Mirko Tschäni
> Priority: Minor
> Attachments: 7595.diff
>
>
> The EmbeddedCassandraService does only provide a start method.
> It should also provide a stop method.
> We use EmbeddedCassandraService to embed cassandra in a osgi application and need to be able to shut down cassandra so that no non daemon threads remain.
> Implementation would be straight forward:
> add the following method to EmbeddedCassandraService:
> public void stop() {
> cassandraDaemon.stop();
> }
> I have tested this implementation locally and it worked as expected (stops all non daemon threads).
--
This message was sent by Atlassian JIRA
(v6.2#6252)