Return-Path: Delivered-To: apmail-incubator-cassandra-commits-archive@minotaur.apache.org Received: (qmail 16355 invoked from network); 6 Sep 2009 04:44:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Sep 2009 04:44:26 -0000 Received: (qmail 69868 invoked by uid 500); 6 Sep 2009 04:44:26 -0000 Delivered-To: apmail-incubator-cassandra-commits-archive@incubator.apache.org Received: (qmail 69850 invoked by uid 500); 6 Sep 2009 04:44:26 -0000 Mailing-List: contact cassandra-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cassandra-dev@incubator.apache.org Delivered-To: mailing list cassandra-commits@incubator.apache.org Received: (qmail 69840 invoked by uid 99); 6 Sep 2009 04:44:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Sep 2009 04:44:25 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Sep 2009 04:44:18 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7BF56234C051 for ; Sat, 5 Sep 2009 21:43:57 -0700 (PDT) Message-ID: <1920022280.1252212237493.JavaMail.jira@brutus> Date: Sat, 5 Sep 2009 21:43:57 -0700 (PDT) From: "Jonathan Ellis (JIRA)" To: cassandra-commits@incubator.apache.org Subject: [jira] Commented: (CASSANDRA-414) remove sstableLock In-Reply-To: <711364933.1251921752710.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CASSANDRA-414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12751824#action_12751824 ] Jonathan Ellis commented on CASSANDRA-414: ------------------------------------------ I checked the source for NBHM and couldn't find any evidence that my literal reading of the iterator contract ("Iterators and Enumerations return elements reflecting the state of the hash table at some point at or since the creation of the iterator/enumeration") was correct. So I asked the author for clarification here: https://sourceforge.net/forum/message.php?msg_id=7611241. He replied, and sure enough, Jun's suspicions were correct and even if the compaction thread is careful to add the new SSTR before removing the old ones from sstables_, iterator threads may see the absence of the latter but not the presence of the former. So I think that this approach is not going to work. But I think we can still cut the lock penalty dramatically from what it is now. I should have some code for that approach Monday. > remove sstableLock > ------------------ > > Key: CASSANDRA-414 > URL: https://issues.apache.org/jira/browse/CASSANDRA-414 > Project: Cassandra > Issue Type: Improvement > Components: Core > Reporter: Jonathan Ellis > Assignee: Jonathan Ellis > Fix For: 0.5 > > Attachments: 0001-CASSANDRA-414-combine-addToList-and-storeLocation-ren.txt, 0001-CASSANDRA-414-combine-addToList-and-storeLocation-ren.txt, 0002-remove-sstableLock.-re-order-a-few-ops-so-that-we-can.txt, 0002-remove-sstableLock.-re-order-a-few-ops-so-that-we-can.txt > > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.