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 02F5D17684 for ; Tue, 28 Jul 2015 11:58:05 +0000 (UTC) Received: (qmail 37277 invoked by uid 500); 28 Jul 2015 11:58:04 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 37250 invoked by uid 500); 28 Jul 2015 11:58:04 -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 37239 invoked by uid 99); 28 Jul 2015 11:58:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Jul 2015 11:58:04 +0000 Date: Tue, 28 Jul 2015 11:58:04 +0000 (UTC) From: "Robert Stupp (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-9853) loadConfig() called twice on startup 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-9853?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14644279#comment-14644279 ] Robert Stupp commented on CASSANDRA-9853: ----------------------------------------- This problem has two faces: * logging "loading configuration" multiple times (start of Gossiper, StorageService's should-bootstrap-test and join-ring, and twice during init of DatabaseDescriptor) during startup is annoying (just noise in the log) * the configuration is loaded too often - i.e. for each call to {{SimpleSeedProvider.getSeeds()}} via {{DatabaseDescriptor.getSeeds()}} (CASSANDRA-9909) > loadConfig() called twice on startup > ------------------------------------ > > Key: CASSANDRA-9853 > URL: https://issues.apache.org/jira/browse/CASSANDRA-9853 > Project: Cassandra > Issue Type: Improvement > Reporter: Robert Stupp > Assignee: Robert Stupp > Fix For: 3.x > > > {{YamlConfigrationLoader.loadConfig()}} is called twice on startup from {{org.apache.cassandra.locator.SimpleSeedProvider#getSeeds}} and {{org.apache.cassandra.config.DatabaseDescriptor#forceStaticInitialization}}. > It's not nice, but not fatal. -- This message was sent by Atlassian JIRA (v6.3.4#6332)