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 AAE667476 for ; Fri, 5 Aug 2011 23:58:52 +0000 (UTC) Received: (qmail 10879 invoked by uid 500); 5 Aug 2011 23:58:50 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 10717 invoked by uid 500); 5 Aug 2011 23:58:49 -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 10709 invoked by uid 99); 5 Aug 2011 23:58:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Aug 2011 23:58:49 +0000 X-ASF-Spam-Status: No, hits=1.3 required=5.0 tests=SPF_HELO_PASS,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ashaw@wetafx.co.nz designates 110.232.144.26 as permitted sender) Received: from [110.232.144.26] (HELO meera.wetafx.co.nz) (110.232.144.26) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Aug 2011 23:58:44 +0000 Received: from localhost (localhost [127.0.0.1]) by meera.wetafx.co.nz (Postfix) with ESMTP id 6795B9F20006 for ; Sat, 6 Aug 2011 11:58:22 +1200 (NZST) X-Virus-Scanned: with amavisd-new by meera at meera.wetafx.co.nz Received: from meera.wetafx.co.nz ([127.0.0.1]) by localhost (meera.wetafx.co.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3Xo611AD7G8E; Sat, 6 Aug 2011 11:58:21 +1200 (NZST) Received: from jupiter036.localdomain (webmail.wetafx.co.nz [192.168.120.66]) by meera.wetafx.co.nz (Postfix) with ESMTP id 7F49E9EF0002 for ; Sat, 6 Aug 2011 11:58:21 +1200 (NZST) Received: from localhost (localhost [127.0.0.1]) by jupiter036.localdomain (Postfix) with ESMTP id 730665BE9A2 for ; Sat, 6 Aug 2011 11:58:21 +1200 (NZST) X-Virus-Scanned: amavisd-new at wetafx.co.nz Received: from jupiter036.localdomain ([127.0.0.1]) by localhost (smtp-digi.wetafx.co.nz [127.0.0.1]) (amavisd-new, port 10024) with LMTP id aiDUQw8oWBw6 for ; Sat, 6 Aug 2011 11:58:21 +1200 (NZST) Received: from [192.168.50.137] (roro.wetafx.co.nz [192.168.50.137]) by jupiter036.localdomain (Postfix) with ESMTP id 608805BE979 for ; Sat, 6 Aug 2011 11:58:21 +1200 (NZST) Message-ID: <4E3C839D.2090203@wetafx.co.nz> Date: Sat, 06 Aug 2011 11:58:21 +1200 From: Aurynn Shaw User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20110705 Thunderbird/5.0 MIME-Version: 1.0 To: user@cassandra.apache.org Subject: Re: Secondary indexes and drop column family References: <4E3C7B31.7030302@wetafx.co.nz> In-Reply-To: <4E3C7B31.7030302@wetafx.co.nz> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Answered my own question; a snapshot gets taken when you drop a CF, per: http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Cassandra-take-a-snapshot-after-a-column-family-update-td6222772.html So, I can recover to a known-good working position, and delete my indices properly. Thanks! ~A On 06/08/11 11:22, Aurynn Shaw wrote: > Hey all; > > So, I've managed to get myself into a position where I'm not sure how > to recover. > > I have a column family that I was a significant number of secondary > indexes on. Some buggy code created a bunch of useless indexes > accidentally, and I took what (at the time) seemed the most obvious path: > > Drop the column family, recreate it, and reconstruct the indexes from > existing data with a known-working script. > > However, now that I've done this, I'm getting: > InvalidRequestException(why='Duplicate index names > .6d62783a646f635f6964') > > when I run the script that generates the secondary indexes. > > Since the CF got dropped and recreated, I can't iterate it to delete > the indexes, since they're not there anymore. > > How do I go about recovering from this? I suspect that ithe name is > being held somewhere in the system keyspace, but I'm not sure where to > look. > > I'm using Cassandra 0.7.4, RF=1. > > Thanks, > Aurynn > >