Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 7901 invoked from network); 31 Mar 2011 21:24:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 31 Mar 2011 21:24:37 -0000 Received: (qmail 36197 invoked by uid 500); 31 Mar 2011 21:24:35 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 36167 invoked by uid 500); 31 Mar 2011 21:24:35 -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 36159 invoked by uid 99); 31 Mar 2011 21:24:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Mar 2011 21:24:35 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jonathan.colby@gmail.com designates 209.85.161.44 as permitted sender) Received: from [209.85.161.44] (HELO mail-fx0-f44.google.com) (209.85.161.44) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Mar 2011 21:24:28 +0000 Received: by fxm15 with SMTP id 15so2440548fxm.31 for ; Thu, 31 Mar 2011 14:24:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to:x-mailer; bh=K25AjF92oNPbpjYNYFMJzPM9Yk3/JLIn2Cg8lP9/ZSg=; b=KBerfEVXCFa+0Dfb3mZEwgdiNytxYJ8ow8gtEtpg0d5wRu0D/pFwDGw7GtjCowsY8j tKxLOy5GxAmWaIaqiIigBQlbNDOD5bGoD3WYkjMafdOTw94D/OXt1LgV3Tjbk52rzQt6 /IMeHUy/hpfElSMBz2pcSXyXtyKhVT2wjnDjM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=mr5z1UhMUCcN6wtKUpQN9jC7cfXIHPzx2kEkS5mAKEsy8f23eUD6XGCLA+WnFg8DG1 bl+qhz+JKCc8ToL+KRUw0+mfAmc0ZE2jutStCM8X3GmIvhg4bOYzx0hOVUDU+YeYQEkd QKPVUNM5nqey4ymas5xIKsN045M7xS1PtoB9M= Received: by 10.223.5.212 with SMTP id 20mr1214581faw.40.1301606646744; Thu, 31 Mar 2011 14:24:06 -0700 (PDT) Received: from [192.168.1.101] (f052048215.adsl.alicedsl.de [78.52.48.215]) by mx.google.com with ESMTPS id p16sm568602fax.21.2011.03.31.14.24.04 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 31 Mar 2011 14:24:05 -0700 (PDT) Subject: Re: How to determine if repair need to be run Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Jonathan Colby In-Reply-To: Date: Thu, 31 Mar 2011 23:24:03 +0200 Cc: user@cassandra.apache.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <1301420212192-6220171.post@n2.nabble.com> <1301421070734-6220228.post@n2.nabble.com> <1301424132945-6220423.post@n2.nabble.com> <1301428784487-6220683.post@n2.nabble.com> <1301434571427-6221041.post@n2.nabble.com> <1301436482271-6221157.post@n2.nabble.com> <4D92DBEF.2050105@hiramoto.org> To: Peter Schuller X-Mailer: Apple Mail (2.1084) Peter - Thanks a lot for elaborating on repairs. Still, it's a bit fuzzy to = me why it is so important to run a repair before the GCGraceSeconds = kicks in. Does this mean a delete does not get "replicated" ? In = other words when I delete something on a node, doesn't cassandra set = tombstones on its replica copies? And technically, isn't repair only needed for cases where things weren't = properly propogated in the cluster? If all writes are written to the = right replicas, and all deletes are written to all the replicas, and all = nodes were available at all times, then everything should work as = designed - without manual intervention, right? Thanks again. On Mar 31, 2011, at 6:17 PM, Peter Schuller wrote: >> silly question, would every cassandra installation need to have = manual repairs done on it? >>=20 >> It would seem cassandra's "read repair" and regular compaction would = take care of keeping the data clean. >>=20 >> Am I missing something? >=20 > See my previous posts in this thread for the distinct reasons to run > repair. Except in special circumstances where you know exactly what > you're doing (mainly that no deletes are performed), you are > *required* to run repair often enough for GGraceSeconds: >=20 > = http://wiki.apache.org/cassandra/Operations#Frequency_of_nodetool_repair >=20 > It seems that there needs to be some more elaborate documentation > about this somewhere to point to since there seems to be confusion. >=20 > Regular compaction does *not* imply repair. Read repair only works if > (1) you touch all data within GCGraceSeconds, and (2) you touch it in > such a way that read repair is enabled (e.g., not range scans), and > (3) no node ever happens to be down, flap, or drop a request when you > touch the data in question. >=20 > Basically, unless you are really sure what you're doing - run repair. >=20 > --=20 > / Peter Schuller