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 0C6F8DBB4 for ; Wed, 22 Aug 2012 02:25:39 +0000 (UTC) Received: (qmail 96175 invoked by uid 500); 22 Aug 2012 02:25:38 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 96052 invoked by uid 500); 22 Aug 2012 02:25:38 -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 95916 invoked by uid 99); 22 Aug 2012 02:25:38 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Aug 2012 02:25:38 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 5327C2C5BF5 for ; Wed, 22 Aug 2012 02:25:38 +0000 (UTC) Date: Wed, 22 Aug 2012 13:25:38 +1100 (NCT) From: "Jonathan Ellis (JIRA)" To: commits@cassandra.apache.org Message-ID: <164975348.38220.1345602338341.JavaMail.jiratomcat@arcas> In-Reply-To: <728995076.768.1344840157959.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (CASSANDRA-4533) Multithreaded cache saving can skip caches MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-4533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13439231#comment-13439231 ] Jonathan Ellis commented on CASSANDRA-4533: ------------------------------------------- You're right, my mistake. +1 > Multithreaded cache saving can skip caches > ------------------------------------------ > > Key: CASSANDRA-4533 > URL: https://issues.apache.org/jira/browse/CASSANDRA-4533 > Project: Cassandra > Issue Type: Bug > Components: Core > Affects Versions: 0.8.0 > Reporter: Zhu Han > Assignee: Yuki Morishita > Priority: Trivial > Fix For: 1.1.5 > > Attachments: 4533-1.1.txt > > > Cassandra flushes the key and row cache to disk periodically. It also uses a atomic flag in flushInProgress to enforce single cache writer at any time. > However, the cache saving task could be submitted to CompactionManager concurrently, as long as the number of worker thread in CompactionManager is larger than 1. > Due to the effect of above atomic flag, only one cache will be written out to disk. Other writer are cancelled when the flag is true. > I observe the situation in Cassandra 1.0. If nothing is changed, the problem should remain in Cassandra 1.1, either. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira