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

EmbeddedCassandraService class should provide a stop method

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Low
    • Resolution: Fixed
    • Fix Version/s: 1.2.19, 2.0.10, 2.1.1
    • Component/s: None
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: