cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Stupp (JIRA)" <>
Subject [jira] [Created] (CASSANDRA-7610) Remove static initializer in DatabaseDescriptor
Date Thu, 24 Jul 2014 11:59:38 GMT
Robert Stupp created CASSANDRA-7610:

             Summary: Remove static initializer in DatabaseDescriptor
                 Key: CASSANDRA-7610
             Project: Cassandra
          Issue Type: Improvement
          Components: Core
            Reporter: Robert Stupp

As discussed in CASSANDRA-7597 it's difficult to properly react on invalid configuration values
in a client tool that uses cassandra code (was an sstable loader).

Reason is that the static initializer in DatabaseDescriptor calls System.exit in case of configuration

Recommend to implement some "loadAndApplyConfig" method on DatabaseDescriptor and remove the
static initializer and let the calling code react accordingly (print error, exit VM).

All direct and indirect uses of DatabaseDescriptor must be catched to solve this ticket -
so it's not a 2.x ticket.

This message was sent by Atlassian JIRA

View raw message