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 A5F7F6E2F for ; Tue, 12 Jul 2011 14:54:15 +0000 (UTC) Received: (qmail 1712 invoked by uid 500); 12 Jul 2011 14:54:13 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 1531 invoked by uid 500); 12 Jul 2011 14:54:12 -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 1523 invoked by uid 99); 12 Jul 2011 14:54:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jul 2011 14:54:12 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.212.44] (HELO mail-vw0-f44.google.com) (209.85.212.44) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jul 2011 14:54:03 +0000 Received: by vws12 with SMTP id 12so5229639vws.31 for ; Tue, 12 Jul 2011 07:53:42 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.73.170 with SMTP id m10mr44235vdv.160.1310482422688; Tue, 12 Jul 2011 07:53:42 -0700 (PDT) Sender: scode@scode.org Received: by 10.52.166.136 with HTTP; Tue, 12 Jul 2011 07:53:42 -0700 (PDT) X-Originating-IP: [64.197.211.195] In-Reply-To: References: <189C3828-FA2D-4F0E-902A-3E84FC1E110D@gmail.com> Date: Tue, 12 Jul 2011 16:53:42 +0200 X-Google-Sender-Auth: CLJDyRqGKwl3HCR0TA_pOf88Q3M Message-ID: Subject: Re: Meaning of 'nodetool repair has to run within GCGraceSeconds' From: Peter Schuller To: user@cassandra.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org > From "Cassandra the definitive guide" - Basic Maintenance - Repair > "Running nodetool repair causes Cassandra to execute a major compaction..= ... > During a major compaction (see =E2=80=9CCompaction=E2=80=9D in the Glossa= ry), the > server initiates a > TreeRequest/TreeReponse conversation to exchange Merkle trees with neighb= oring > nodes." > > So is this text from the book misleading ? It's just being a bit less specific (I suppose maybe misleading can be claimed). If you repair everything on a node, that will imply a validating compaction (i.e., do the read part of the compaction stage but don't merge to and write new sstables) which is expensive for the usual reasons with disk I/O; it's "major" since it covers all data. The data read is in fact used to calculate a merkle tree for comparison with neighbors, as claimed. --=20 / Peter Schuller