Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2BE3B183B5 for ; Sun, 17 Apr 2016 09:25:26 +0000 (UTC) Received: (qmail 65364 invoked by uid 500); 17 Apr 2016 09:25:25 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 65321 invoked by uid 500); 17 Apr 2016 09:25:25 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 65307 invoked by uid 99); 17 Apr 2016 09:25:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 17 Apr 2016 09:25:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 8E15D2C1F5A for ; Sun, 17 Apr 2016 09:25:25 +0000 (UTC) Date: Sun, 17 Apr 2016 09:25:25 +0000 (UTC) From: "Robert Stupp (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-9054) Break DatabaseDescriptor up into multiple classes. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-9054?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15244591#comment-15244591 ] Robert Stupp commented on CASSANDRA-9054: ----------------------------------------- Uh - this will be a noisy patch. At least I managed to pull out everything from DatabaseDescriptor that initializes something during class initialization. Good thing is, it's nothing complicated - just "boring" stuff, just a huge amount of boring stuff to add initialization to unit tests. > Break DatabaseDescriptor up into multiple classes. > -------------------------------------------------- > > Key: CASSANDRA-9054 > URL: https://issues.apache.org/jira/browse/CASSANDRA-9054 > 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 (v6.3.4#6332)