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 DF76646A1 for ; Tue, 17 May 2011 16:09:32 +0000 (UTC) Received: (qmail 38119 invoked by uid 500); 17 May 2011 16:09:30 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 38094 invoked by uid 500); 17 May 2011 16:09:30 -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 38086 invoked by uid 99); 17 May 2011 16:09:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 May 2011 16:09:30 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jbellis@gmail.com designates 74.125.82.44 as permitted sender) Received: from [74.125.82.44] (HELO mail-ww0-f44.google.com) (74.125.82.44) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 May 2011 16:09:24 +0000 Received: by wwa36 with SMTP id 36so627536wwa.25 for ; Tue, 17 May 2011 09:09:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=QoWyq60usj6CwQY/1UOeUmFtdQ3yCZ1co8j73V2OcBY=; b=QZCyxyFRcioV66tVwuaCozjNnL+YOGXUhZIruVWpkMKqTPezUN1zetGV5HkwBr7k3I QwDeuj1YhYjxTBbQ5DJQ7a3ah7HKn8g8sJFX9tStgM2eVSaEGqez0gK7WjPYiJEtO1mG jx8hTLSfrPaSdbX7baxPn2B4phN5u/KxvWrZE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=XijhaAWZUKtx7bSIBiNbBoK2ebIuN3YBE3u6YoNFFzD85cQOHzRKTVpG8tYxARkghK qBYdXCfGq7gjmQ0NKk+gaWTBGkNtifGIxFcMvwYQ0lxbJfcupyf060lptJhjtBcInlEj Yo8oV2eV/8zOukIhOE+u/JsDUKKF9NAYDn2FY= Received: by 10.216.65.203 with SMTP id f53mr3924415wed.54.1305648543106; Tue, 17 May 2011 09:09:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.8.71 with HTTP; Tue, 17 May 2011 09:08:43 -0700 (PDT) In-Reply-To: References: From: Jonathan Ellis Date: Tue, 17 May 2011 11:08:43 -0500 Message-ID: Subject: Re: Inconsistent results using secondary indexes between two DC To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Nothing comes to mind. I'd start by using sstable2json to see if the missing rows are in the main data CF -- i.e., are they just unindexed, or are they missing completely? On Sun, May 15, 2011 at 4:33 PM, Wojciech Pietrzok wrote: > Hello, > > I've noticed strange behaviour of Cassandra when using secondary indexes. > There are 2 Data Centers, each with 2 nodes, RF=4, on all nodes > Cassandra 0.7.5 is installed. > When I connect to one of the nodes in DC1 and perform query using > secondary indexes ("get ColumnFamily where column = 'foo'" in > cassandra-cli) I always get correct number of rows returned, no matter > which ConsistencyLevel is set. > When I connect to one of the nodes in DC2 and perform same query using > ConsistencyLevel LOCAL_QUORUM the results are correct. But using > ConsistencyLevel ONE Cassandra doesn't return correct number of rows > (it seems that most of the times there some of the rows are missing). > Tried running nodetool repair, and nodetool scrub but this doesn't seem to help. > > What might the cause of such behaviour? > > -- > KosciaK > -- Jonathan Ellis Project Chair, Apache Cassandra co-founder of DataStax, the source for professional Cassandra support http://www.datastax.com