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 BBC7918195 for ; Tue, 16 Jun 2015 05:45:01 +0000 (UTC) Received: (qmail 29475 invoked by uid 500); 16 Jun 2015 05:45:01 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 29435 invoked by uid 500); 16 Jun 2015 05:45:01 -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 29423 invoked by uid 99); 16 Jun 2015 05:45:01 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jun 2015 05:45:01 +0000 Date: Tue, 16 Jun 2015 05:45:01 +0000 (UTC) From: "Fred (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-9560) Changing durable_writes on a keyspace is only applied after restart of node 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-9560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14587505#comment-14587505 ] Fred commented on CASSANDRA-9560: --------------------------------- Any news about this one? > Changing durable_writes on a keyspace is only applied after restart of node > --------------------------------------------------------------------------- > > Key: CASSANDRA-9560 > URL: https://issues.apache.org/jira/browse/CASSANDRA-9560 > Project: Cassandra > Issue Type: Bug > Components: Core > Environment: Single node > Reporter: Fred > Assignee: Carl Yeksigian > Fix For: 2.1.x > > > When mutations for a column family is about to be applied, the cached instance of the keyspace metadata is read. But the schema mutation for durable_writes hasn't been applied to this cached instance. > I'm not too familiar with the codebase but after some debugging (2.1.3), it's somehow related to: > {code:title=org.apache.cassandra.db.Mutation.java|borderStyle=solid} > public void apply() > { > Keyspace ks = Keyspace.open(keyspaceName); > ks.apply(this, ks.metadata.durableWrites); > } > {code} > Where a cached instance of the keyspace is opened but it's metadata hasn't been updated with the earlier applied durable_writes mutation, since it seems that the cached keyspace instance is lazily build at startup but after that, never updated. I'm also a little bit concerned if other values in the cached keyspace instance suffers from the same issue, e.g. replication_factor... > I've seen the same issue in 2.1.5 and the only way to resolve this issue is to restart the node to let the keyspace instance cache reload from disk. -- This message was sent by Atlassian JIRA (v6.3.4#6332)