Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B46C9C538 for ; Fri, 13 Jul 2012 21:51:59 +0000 (UTC) Received: (qmail 206 invoked by uid 500); 13 Jul 2012 21:51:57 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 181 invoked by uid 500); 13 Jul 2012 21:51:57 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 169 invoked by uid 99); 13 Jul 2012 21:51:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jul 2012 21:51:57 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=FSL_RCVD_USER,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [65.127.24.21] (HELO internet02.ebureau.com) (65.127.24.21) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jul 2012 21:51:52 +0000 Received: from service02.office.ebureau.com (service02.office.ebureau.com [192.168.20.15]) by internet02.ebureau.com (Postfix) with ESMTP id 50143CF842E for ; Fri, 13 Jul 2012 16:51:31 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by service02.office.ebureau.com (Postfix) with ESMTP id 2DF1BA2962EA for ; Fri, 13 Jul 2012 16:51:31 -0500 (CDT) X-Virus-Scanned: amavisd-new at ebureau.com Received: from service02.office.ebureau.com ([127.0.0.1]) by localhost (service02.office.iscompanies.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8ehtVuXl+3DA for ; Fri, 13 Jul 2012 16:51:30 -0500 (CDT) Received: from square.office.ebureau.com (square.office.ebureau.com [10.10.20.22]) by service02.office.ebureau.com (Postfix) with ESMTPSA id 70F87A2962DF for ; Fri, 13 Jul 2012 16:51:30 -0500 (CDT) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Apple Message framework v1257) Subject: Re: Increased replication factor not evident in CLI From: Dustin Wenz In-Reply-To: Date: Fri, 13 Jul 2012 16:51:30 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <83DA5F29-9A50-4AF6-8C3B-2EBABF49CEF3@ebureau.com> References: <4944F77D-D759-4BA1-8EF8-62B0B4BC81CD@ebureau.com> <73AC9598-4896-40DB-B6A0-08523CA46BE8@thelastpickle.com> <956E6761-EC2B-4C9C-8BDB-147419A4E77C@yahoo.com> To: user@cassandra.apache.org X-Mailer: Apple Mail (2.1257) X-Virus-Checked: Checked by ClamAV on apache.org I was able to apply the patch in the cited bug report to the public = source for version 1.1.2. It seemed pretty straightforward; six lines in = MigrationManager.java were switched from System.currentTimeMillis() to = FBUtilities.timestampMicros(). I then re-built the project by running = 'ant artifacts' in the cassandra root. After I was up and running with the new version, I attempted to increase = the replication factor, and then the compressions options. Unfortunately, new patch did not seem to help in my case. Neither of the = schema attributes would change. Running a "describe cluster" shows that = all node schemas are consistent. =09 Are there any other ways that I could potentially force Cassandra to = accept these changes? - .Dustin On Jul 13, 2012, at 10:02 AM, Dustin Wenz wrote: > It sounds plausible that is what we are running into. All of our nodes = report a replication factor of 2 (both using describe, and show schema), = even though the cluster reported that all schemas agree after I issued = the change to 4. >=20 > If this is related to the bug that you filed, it might also explain = why I've had difficulty changing the compression options on this same = cluster. I issue an update command, schemas agree, but yet the change is = not evident. >=20 > - .Dustin >=20 > On Jul 12, 2012, at 7:56 PM, Michael Theroux wrote: >=20 >> Sounds a lot like a bug that I hit that was filed and fixed recently: >>=20 >> https://issues.apache.org/jira/browse/CASSANDRA-4432 >>=20 >> -Mike >>=20 >> On Jul 12, 2012, at 8:16 PM, Edward Capriolo wrote: >>=20 >>> Possibly the bug with nanotime causing cassandra to think the change = happened in the past. Talked about onlist in past few days. >>> On Thursday, July 12, 2012, aaron morton = wrote: >>>> Do multiple nodes say the RF is 2 ? Can you show the output from = the CLI ? Do show schema and show keyspace say the same thing ? >>>> Cheers >>>>=20 >>>>=20 >>>> ----------------- >>>> Aaron Morton >>>> Freelance Developer >>>> @aaronmorton >>>> http://www.thelastpickle.com >>>> On 13/07/2012, at 7:39 AM, Dustin Wenz wrote: >>>>=20 >>>> We recently increased the replication factor of a keyspace in our = cassandra 1.1.1 cluster from 2 to 4. This was done by setting the = replication factor to 4 in cassandra-cli, and then running a repair on = each node. >>>>=20 >>>> Everything seems to have worked; the commands completed = successfully and disk usage increased significantly. However, if I = perform a describe on the keyspace, it still shows replication_factor:2. = So, it appears that the replication factor might be 4, but it reports as = 2. I'm not entirely sure how to confirm one or the other. >>>>=20 >>>> Since then, I've stopped and restarted the cluster, and even ran an = upgradesstables on each node. The replication factor still doesn't = report as I would expect. Am I missing something here? >>>>=20 >>>> - .Dustin >>>>=20 >>>>=20 >>>>=20 >>=20 >=20