Yeah it is rather annoying.

I install a "fake" security manager to get around this.
https://github.com/dma-ais/AisStore/blob/master/ais-store-raw/src/main/java/dk/dma/ais/store/old/exporter/CassandraNodeTool.java

Cheers
  Kasper


On Fri, Sep 19, 2014 at 10:39 AM, Heiko Braun <ike.br...@googlemail.com>
wrote:

>
> Hi everybody,
>
> I've been trying run Cassandra as a managed service from another java
> process and stumbled across the use of System.exit() calls in some of the
> core services (i.e DatabaseDescriptor, StorageService, SSTableReader).
>
> This makes the use as an embedded service very difficult and I can imagine
> that it easily creates other issues as well (i.e. freeing allocated
> resources).
>
> Can somebody explain the rational behind using System.exit() calls opposed
> to the use of regular exceptions and handling the process shutdown in a
> well defined place (i.e the CassandraDaemon) ?
>
> Regards, Heiko

Reply via email to