Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-7595

EmbeddedCassandraService class should provide a stop method

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 1.2.19, 2.0.10, 2.1.1
    • None
    • None

    Description

      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).

      Attachments

        1. 7595.diff
          0.6 kB
          Lyuben Todorov

        Activity

          People

            lyubent Lyuben Todorov
            mirko.tschaeni Mirko Tschäni
            Lyuben Todorov
            Sylvain Lebresne
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: