cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Blake Eggleston (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-9054) Break DatabaseDescriptor up into multiple classes.
Date Mon, 18 Jul 2016 16:40:20 GMT


Blake Eggleston commented on CASSANDRA-9054:

What about _actually_ breaking DatabaseDescriptor into a few different config classes? The
patch here does fix the specific bits of code causing problems on startup, but we still have
this huge god object that's hooked into everything. 

Do you have any thoughts here [~yukim]? I know you've wanted to do something similar for a
while now.

> Break DatabaseDescriptor up into multiple classes.
> --------------------------------------------------
>                 Key: CASSANDRA-9054
>                 URL:
>             Project: Cassandra
>          Issue Type: Improvement
>            Reporter: Jeremiah Jordan
>            Assignee: Robert Stupp
>             Fix For: 3.x
> Right now to get at Config stuff you go through DatabaseDescriptor.  But when you instantiate
DatabaseDescriptor it actually opens system tables and such, which triggers commit log replays,
and other things if the right flags aren't set ahead of time.  This makes getting at config
stuff from tools annoying, as you have to be very careful about instantiation orders.
> It would be nice if we could break DatabaseDescriptor up into multiple classes, so that
getting at config stuff from tools wasn't such a pain.

This message was sent by Atlassian JIRA

View raw message