Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id E4E5F200B11 for ; Mon, 30 May 2016 07:37:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E3801160A07; Mon, 30 May 2016 05:37:14 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 36214160A2C for ; Mon, 30 May 2016 07:37:14 +0200 (CEST) Received: (qmail 12915 invoked by uid 500); 30 May 2016 05:37:13 -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 12904 invoked by uid 99); 30 May 2016 05:37:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 May 2016 05:37:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 0E8D02C1F68 for ; Mon, 30 May 2016 05:37:13 +0000 (UTC) Date: Mon, 30 May 2016 05:37:13 +0000 (UTC) From: "Stefania (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-11905) Index building fails to start CFS.readOrdering when reading MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 30 May 2016 05:37:15 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-11905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15306252#comment-15306252 ] Stefania commented on CASSANDRA-11905: -------------------------------------- There is a typo at line 122 of {{SinglePartitionSliceCommandTest}}, it should be {{pIter.next()}} rather than {{partitionIterator.next()}}. This is causing 2 CI failures, the remaining failing tests are all unrelated known failures. +1 once the typo in the test is fixed. > Index building fails to start CFS.readOrdering when reading > ----------------------------------------------------------- > > Key: CASSANDRA-11905 > URL: https://issues.apache.org/jira/browse/CASSANDRA-11905 > Project: Cassandra > Issue Type: Bug > Reporter: Sylvain Lebresne > Assignee: Sylvain Lebresne > Priority: Critical > Fix For: 3.0.x, 3.x > > > This code for indexing partition when building index in 3.0 is: > {noformat} > SinglePartitionReadCommand cmd = SinglePartitionReadCommand.fullPartitionRead(cfs.metadata, FBUtilities.nowInSeconds(), key); > try (OpOrder.Group opGroup = cfs.keyspace.writeOrder.start(); > UnfilteredRowIterator partition = cmd.queryMemtableAndDisk(cfs, opGroup)) > { > cfs.indexManager.indexPartition(partition, opGroup, indexes, cmd.nowInSec()); > } > {noformat} > which is clearly incorrect as the {{OpOrder}} that {{queryMemtableAndDisk}} expects is the one from {{cfs.readOrdering}}, not the one for writes on the keyspace. > This wasn't a problem prior to 3.0 as the similar code was using the pager, which ended up properly taking the read {{OpOrder}} internally but I messed this up in CASSANDRA-8099. > Thanks to [~Stefania] for pointing that out. -- This message was sent by Atlassian JIRA (v6.3.4#6332)