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 CB9B16A05 for ; Fri, 8 Jul 2011 09:01:47 +0000 (UTC) Received: (qmail 49016 invoked by uid 500); 8 Jul 2011 09:01:47 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 48665 invoked by uid 500); 8 Jul 2011 09:01:42 -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 48619 invoked by uid 99); 8 Jul 2011 09:01:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jul 2011 09:01:40 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jul 2011 09:01:39 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 21D334D45A for ; Fri, 8 Jul 2011 09:01:19 +0000 (UTC) Date: Fri, 8 Jul 2011 09:01:19 +0000 (UTC) From: "Sylvain Lebresne (JIRA)" To: commits@cassandra.apache.org Message-ID: <319016112.10674.1310115679135.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (CASSANDRA-2872) While dropping and recreating an index, incremental snapshotting can hang MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 While dropping and recreating an index, incremental snapshotting can hang -------------------------------------------------------------------------- Key: CASSANDRA-2872 URL: https://issues.apache.org/jira/browse/CASSANDRA-2872 Project: Cassandra Issue Type: Bug Components: Core Affects Versions: 0.7.4 Reporter: Sylvain Lebresne Priority: Minor When creating a hard link (at list with JNA), link() hang if the target of the link already exists. In theory though, we should not hit that situation because we use a new directory for each manual snapshot and the generation number of the sstables should prevent this from hapenning with increment snapshot. However, when you drop, then recreate a secondary index, if the sstables are deleted after the drop and before we recreate the index, the recreated index sstables will start with a generation to 0. Thus, when we start backuping them incrementally, it will conflict with the sstables of the previously dropped index. First, we should check for the target existance because calling link() to at least avoid hanging. But then we must make sure that when we drop, then recreate an index, we will either not name the sstables the same way or the incremental snapshot use a different directory. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira