Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0B5AA1746B for ; Thu, 19 Mar 2015 20:49:40 +0000 (UTC) Received: (qmail 75335 invoked by uid 500); 19 Mar 2015 20:49:39 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 75302 invoked by uid 500); 19 Mar 2015 20:49:39 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 75291 invoked by uid 99); 19 Mar 2015 20:49:39 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Mar 2015 20:49:39 +0000 Date: Thu, 19 Mar 2015 20:49:39 +0000 (UTC) From: "Tyler Hobbs (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-8993) EffectiveIndexInterval calculation is incorrect MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-8993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14370087#comment-14370087 ] Tyler Hobbs commented on CASSANDRA-8993: ---------------------------------------- bq. I have had another closer look. It seems that we're reading an interval of 128, when in fact it is 2048. Are you referring to when we deserialize the index summary? The default {{index_interval}} in 2.0 was 128. In 2.1, we use the old value of {{index_interval}} for {{min_index_interval}} and set {{max_index_interval}} to 2048. Unfortunately there was a bug in cqlsh in 2.1, so neither property is shown in the {{DESCRIBE}} output. I'm assuming you inspected the serialized index summary and saw an (old) interval of 2048? > EffectiveIndexInterval calculation is incorrect > ----------------------------------------------- > > Key: CASSANDRA-8993 > URL: https://issues.apache.org/jira/browse/CASSANDRA-8993 > Project: Cassandra > Issue Type: Bug > Components: Core > Reporter: Benedict > Assignee: Benedict > Priority: Blocker > Fix For: 2.1.4 > > Attachments: 8993.txt > > > I'm not familiar enough with the calculation itself to understand why this is happening, but see discussion on CASSANDRA-8851 for the background. I've introduced a test case to look for this during downsampling, but it seems to pass just fine, so it may be an artefact of upgrading. > The problem was, unfortunately, not manifesting directly because it would simply result in a failed lookup. This was only exposed when early opening used firstKeyBeyond, which does not use the effective interval, and provided the result to getPosition(). > I propose a simple fix that ensures a bug here cannot break correctness. Perhaps [~thobbs] can follow up with an investigation as to how it actually went wrong? -- This message was sent by Atlassian JIRA (v6.3.4#6332)