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 4876F1925F for ; Fri, 25 Mar 2016 00:32:30 +0000 (UTC) Received: (qmail 86965 invoked by uid 500); 25 Mar 2016 00:32:25 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 86765 invoked by uid 500); 25 Mar 2016 00:32:25 -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 86493 invoked by uid 99); 25 Mar 2016 00:32:24 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Mar 2016 00:32:24 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 9BA81C2139 for ; Fri, 25 Mar 2016 00:32:24 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.28 X-Spam-Level: * X-Spam-Status: No, score=1.28 tagged_above=-999 required=6.31 tests=[HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id vwEQD4UxIfnR for ; Fri, 25 Mar 2016 00:32:23 +0000 (UTC) Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com [74.125.82.43]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 4F0C85F47C for ; Fri, 25 Mar 2016 00:32:23 +0000 (UTC) Received: by mail-wm0-f43.google.com with SMTP id l68so9361636wml.0 for ; Thu, 24 Mar 2016 17:32:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:message-id:in-reply-to :references:subject:mime-version; bh=pHNYuGgm6+EseR121R+uhhp5NogZsawCGarxIjpd9VU=; b=aS94MgPxn/ml8iM68NtfqR1jwOgVlFeofVK8mJmtE94JBllQTH9PfZCbjv5YJOffMn XdLm3oKbBECWklOEcyYOk6fYwQIoRIkszhsndF/YF/TFhgOon6jrkBvWhrDf/j3AwhiV /1T7gj12+KoqiKWomX1DmQOERJzFxvuYiGsyMBK9ZG8bDXeZpuyC6WkUc2O3JSG9s1+E iomoaksRswehBcr0WFEKQPGJrPG1HkRDINP72Rfq73PwBr3B6iDaU2u/QP+ZpiDzHo/G m5Z4cAyMFAK2aMWym3FoKKTKcdpyy3v+J9U2gt0O4uPS6TVSNtxj8ge1ykAOixQyYO0g R00w== X-Gm-Message-State: AD7BkJL+Bl8je8lpY/aB4H3EcY/azv0Bxp4IlTlsZW4U4hkb1L9LhSRnEmVp5+LCmrHWctuj X-Received: by 10.194.133.101 with SMTP id pb5mr12441639wjb.106.1458865941966; Thu, 24 Mar 2016 17:32:21 -0700 (PDT) Received: from AY15rMBP.home (host86-164-41-49.range86-164.btcentralplus.com. [86.164.41.49]) by smtp.gmail.com with ESMTPSA id gg7sm9627489wjd.10.2016.03.24.17.32.19 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 24 Mar 2016 17:32:20 -0700 (PDT) Date: Fri, 25 Mar 2016 00:32:15 +0000 From: Aleksey Yeschenko To: Dikang Gu Cc: dev@cassandra.apache.org, cassandra Message-ID: In-Reply-To: References: Subject: Re: Counter values become under-counted when running repair. X-Mailer: Airmail (351) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="56f4870f_2e3aaae2_4d08" --56f4870f_2e3aaae2_4d08 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Best open a JIRA ticket and I=E2=80=99ll have a look at what could be the= reason. --=C2=A0 AY On 24 March 2016 at 23:20:55, Dikang Gu (dikang85=40gmail.com) wrote: =40Aleksey, we are writing to cluster with CL =3D 2, and reading with CL = =3D 1. =20 And overall we have 6 copies across 3 different regions. Do you have =20 comments about our setup=3F =20 During the repair, the counter value become inaccurate, we are still =20 playing with the repair, will keep you update with more experiments. But = do =20 you have any theory around that=3F =20 Thanks a lot=21 =20 Dikang. =20 On Thu, Mar 24, 2016 at 11:02 AM, Aleksey Yeschenko =20 wrote: =20 > After repair is over, does the value settle=3F What CLs do you write to= your =20 > counters with=3F What CLs are you reading with=3F =20 > =20 > -- =20 > AY =20 > =20 > On 24 March 2016 at 06:17:27, Dikang Gu (dikang85=40gmail.com) wrote: =20 > =20 > Hello there, =20 > =20 > We are experimenting Counters in Cassandra 2.2.5. Our setup is that we = =20 > have =20 > 6 nodes, across three different regions, and in each region, the =20 > replication factor is 2. Basically, each nodes holds a full copy of the= =20 > data. =20 > =20 > When are doing 30k/s counter increment/decrement per node, and at the =20 > meanwhile, we are double writing to our mysql tier, so that we can meas= ure =20 > the accuracy of C* counter, compared to mysql. =20 > =20 > The experiment result was great at the beginning, the counter value in = C* =20 > and mysql are very close. The difference is less than 0.1%. =20 > =20 > But when we start to run the repair on one node, the counter value in C= * =20 > become much less than the value in mysql, the difference becomes larger= =20 > than 1%. =20 > =20 > My question is that is it a known problem that the counter value will =20 > become under-counted if repair is running=3F Should we avoid running re= pair =20 > for counter tables=3F =20 > =20 > Thanks. =20 > =20 > -- =20 > Dikang =20 > =20 > =20 -- =20 Dikang =20 --56f4870f_2e3aaae2_4d08 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline