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 1D77E6CAC for ; Wed, 27 Jul 2011 13:39:37 +0000 (UTC) Received: (qmail 9399 invoked by uid 500); 27 Jul 2011 13:39:34 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 8424 invoked by uid 500); 27 Jul 2011 13:39:32 -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 8383 invoked by uid 99); 27 Jul 2011 13:39:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jul 2011 13:39:31 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jul 2011 13:39:30 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D253C8DAD5 for ; Wed, 27 Jul 2011 13:39:09 +0000 (UTC) Date: Wed, 27 Jul 2011 13:39:09 +0000 (UTC) From: "Jonathan Ellis (JIRA)" To: commits@cassandra.apache.org Message-ID: <1609701535.11874.1311773949858.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <401299418.11299.1311757211422.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CASSANDRA-2953) Use lazy initialization instead of class initialization in NodeId 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-2953?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13071723#comment-13071723 ] Jonathan Ellis commented on CASSANDRA-2953: ------------------------------------------- +1 > Use lazy initialization instead of class initialization in NodeId > ----------------------------------------------------------------- > > Key: CASSANDRA-2953 > URL: https://issues.apache.org/jira/browse/CASSANDRA-2953 > Project: Cassandra > Issue Type: Improvement > Components: Core > Affects Versions: 0.8.0 > Reporter: Sylvain Lebresne > Assignee: Sylvain Lebresne > Priority: Trivial > Fix For: 0.8.3 > > Attachments: 0001-Use-lazy-initialization-for-NodeId.patch > > > The class initialization of NodeId triggers a read to a system table. When using the class introduced in CASSANDRA-2911, this happens to be triggered even though this is not necessary. This a a pain because when you use those classes, you don't have to have to set reasonable values for the data_dir and commitlog_dir in cassandra.yaml (it is a pain to have to have a cassandra.yaml in the classpath in the first place, but that's for another ticket). > This ticket proposes using lazy initialization in NodeId to avoid that. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira