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 5104F10A12 for ; Wed, 15 Jan 2014 18:11:25 +0000 (UTC) Received: (qmail 74288 invoked by uid 500); 15 Jan 2014 18:11:21 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 74004 invoked by uid 500); 15 Jan 2014 18:11:20 -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 73813 invoked by uid 99); 15 Jan 2014 18:11:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jan 2014 18:11:20 +0000 Date: Wed, 15 Jan 2014 18:11:20 +0000 (UTC) From: "Jonathan Ellis (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-6498) Null pointer exception in custom secondary indexes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-6498?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jonathan Ellis updated CASSANDRA-6498: -------------------------------------- Priority: Minor (was: Major) Fix Version/s: 2.1 > Null pointer exception in custom secondary indexes > -------------------------------------------------- > > Key: CASSANDRA-6498 > URL: https://issues.apache.org/jira/browse/CASSANDRA-6498 > Project: Cassandra > Issue Type: Bug > Reporter: Andr=C3=A9s de la Pe=C3=B1a > Assignee: Miguel Angel Fernandez Diaz > Priority: Minor > Labels: 2i, secondaryIndex, secondary_index > Fix For: 2.1 > > Attachments: CASSANDRA-6498.patch > > > StorageProxy#estimateResultRowsPerRange raises a null pointer exception w= hen using a custom 2i implementation that not uses a column family as under= lying storage: > {code} > resultRowsPerRange =3D highestSelectivityIndex.getIndexCfs().getMeanColum= ns(); > {code} > According to the documentation, the method SecondaryIndex#getIndexCfs sho= uld return null when no column family is used. -- This message was sent by Atlassian JIRA (v6.1.5#6160)