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 85DBFE305 for ; Sun, 10 Feb 2013 20:13:24 +0000 (UTC) Received: (qmail 93519 invoked by uid 500); 10 Feb 2013 20:13:22 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 93491 invoked by uid 500); 10 Feb 2013 20:13:22 -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 93482 invoked by uid 99); 10 Feb 2013 20:13:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Feb 2013 20:13:22 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.113.200.5] (HELO homiemail-a80.g.dreamhost.com) (208.113.200.5) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Feb 2013 20:13:15 +0000 Received: from homiemail-a80.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a80.g.dreamhost.com (Postfix) with ESMTP id 3904937A06F for ; Sun, 10 Feb 2013 12:12:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=thelastpickle.com; h= content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; s= thelastpickle.com; bh=jWLu6rHYroHNg7ENgHZsqFQMoZw=; b=UWPcz5k3EH np4X0iWRGJRyC8lxYoADOJXCHi2OmIEFFl8F0Zc8rDpni45Gf+kgYWwHTNfBbui/ gvC6FVHBBK0r1GXNI+zaRo3YjDxfOJJGb5IDfgDKj654Vb826gydr23v9chhfk26 9ZLYidcWk5YVXswK6eJO5pr29T1ruAZiA= Received: from [172.16.1.8] (unknown [203.86.207.101]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: aaron@thelastpickle.com) by homiemail-a80.g.dreamhost.com (Postfix) with ESMTPSA id B55BB37A065 for ; Sun, 10 Feb 2013 12:12:54 -0800 (PST) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: Read-repair working, repair not working? From: aaron morton In-Reply-To: Date: Mon, 11 Feb 2013 09:12:59 +1300 Content-Transfer-Encoding: quoted-printable Message-Id: <7869B1C1-E3C0-4E74-844F-D8CE56DFA219@thelastpickle.com> References: To: user@cassandra.apache.org X-Mailer: Apple Mail (2.1499) X-Virus-Checked: Checked by ClamAV on apache.org > I=92d request data, nothing would be returned, I would then re-request = the data and it would correctly be returned: >=20 What CL are you using for reads and writes? > I see a number of dropped =91MUTATION=92 operations : just under 5% of = the total =91MutationStage=92 count. >=20 Dropped mutations in a multi DC setup may be a sign of network = congestion or overloaded nodes.=20 > - Could anybody suggest anything specific to look at to see = why the repair operations aren=92t having the desired effect?=20 >=20 I would first build a test case to ensure correct operation when using = strong consistency. i.e. QUOURM write and read. Because you are using RF = 2 per DC I assume you are not using LOCAL_QUOURM because that is 2 and = you would not have any redundancy in the DC.=20 =20 >=20 > - Would increasing logging level to =91DEBUG=92 show = read-repair activity (to confirm that this is happening, when & for what = proportion of total requests)? It would, but the INFO logging for the AES is pretty good. I would hold = off for now.=20 >=20 > - Is there something obvious that I could be missing here? When a new AES session starts it logs this logger.info(String.format("[repair #%s] new session: will = sync %s on range %s for %s.%s", getName(), repairedNodes(), range, = tablename, Arrays.toString(cfnames))); When it completes it logs this logger.info(String.format("[repair #%s] session completed successfully", = getName())); Or this on failure=20 logger.error(String.format("[repair #%s] session completed with the = following error", getName()), exception); Cheers ----------------- Aaron Morton Freelance Cassandra Developer New Zealand @aaronmorton http://www.thelastpickle.com On 10/02/2013, at 9:56 PM, Brian Fleming = wrote: >=20 > =20 >=20 > Hi, >=20 > =20 >=20 > I have a 20 node cluster running v1.0.7 split between 5 data centres, = each with an RF of 2, containing a ~1TB unique dataset/~10TB of total = data.=20 >=20 > =20 >=20 > I=92ve had some intermittent issues with a new data centre (3 nodes, = RF=3D2) I brought online late last year with data consistency & = availability: I=92d request data, nothing would be returned, I would = then re-request the data and it would correctly be returned: i.e. = read-repair appeared to be occurring. However running repairs on the = nodes didn=92t resolve this (I tried general =91repair=92 commands as = well as targeted keyspace commands) =96 this didn=92t alter the = behaviour. >=20 > =20 >=20 > After a lot of fruitless investigation, I decided to wipe & = re-install/re-populate the nodes. The re-install & repair operations = are now complete: I see the expected amount of data on the nodes, = however I am still seeing the same behaviour, i.e. I only get data after = one failed attempt. >=20 > =20 >=20 > When I run repair commands, I don=92t see any errors in the logs.=20 >=20 > I see the expected =91AntiEntropySessions=92 count in =91nodetool = tpstats=92 during repair sessions. >=20 > I see a number of dropped =91MUTATION=92 operations : just under 5% of = the total =91MutationStage=92 count. >=20 > =20 >=20 > Questions : >=20 > - Could anybody suggest anything specific to look at to see = why the repair operations aren=92t having the desired effect?=20 >=20 > - Would increasing logging level to =91DEBUG=92 show = read-repair activity (to confirm that this is happening, when & for what = proportion of total requests)? >=20 > - Is there something obvious that I could be missing here? >=20 > =20 >=20 > Many thanks, >=20 > Brian >=20 > =20 >=20