jsevellec / cassandra-unit

Utility tool to load Data into Cassandra to help you writing good isolated JUnit Test into your application
GNU Lesser General Public License v3.0
424 stars 1 forks source link

How to kill the started embedded cassandra? #250

Closed shankarshastri closed 5 years ago

shankarshastri commented 7 years ago

Cassandra unit starts, but still I find port 7010 still in use, even after the end of the process?

abalonperin commented 6 years ago

A bit late to the party but have you tried:

  EmbeddedCassandraServerHelper.getSession().close()
  EmbeddedCassandraServerHelper.getCluster().close()

?

jsevellec commented 5 years ago

Embedded Cassandra is started once for the JVM. As long as the JVM is started the process is still there (for your unit tests...)