Return-Path: Delivered-To: apmail-incubator-cassandra-commits-archive@minotaur.apache.org Received: (qmail 85346 invoked from network); 22 Jul 2009 06:01:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Jul 2009 06:01:33 -0000 Received: (qmail 41957 invoked by uid 500); 22 Jul 2009 06:02:39 -0000 Delivered-To: apmail-incubator-cassandra-commits-archive@incubator.apache.org Received: (qmail 41923 invoked by uid 500); 22 Jul 2009 06:02:39 -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 41913 invoked by uid 99); 22 Jul 2009 06:02:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jul 2009 06:02:39 +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; Wed, 22 Jul 2009 06:02:36 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E179F29A0016 for ; Tue, 21 Jul 2009 23:02:14 -0700 (PDT) Message-ID: <311249083.1248242534922.JavaMail.jira@brutus> Date: Tue, 21 Jul 2009 23:02:14 -0700 (PDT) From: "Sandeep Tata (JIRA)" To: cassandra-commits@incubator.apache.org Subject: [jira] Commented: (CASSANDRA-182) CommitLog.add doesn't really force to disk In-Reply-To: <1192574376.1242404265678.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-182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12733998#action_12733998 ] Sandeep Tata commented on CASSANDRA-182: ---------------------------------------- I did figure how to avoid using force(true) to flush the metadata in addition to the data (2 disk forces instead of one). If you preallocate the pages for the log file, you need to force(true) only when you have to grab more pages for the log. This would of course require some extra work in the logger code so the end of the log can be tracked without depending on file size/end of file. > CommitLog.add doesn't really force to disk > ------------------------------------------ > > Key: CASSANDRA-182 > URL: https://issues.apache.org/jira/browse/CASSANDRA-182 > Project: Cassandra > Issue Type: Bug > Components: Core > Affects Versions: 0.3 > Reporter: Sandeep Tata > Assignee: Jonathan Ellis > Fix For: 0.4 > > Attachments: CASSANDRA-182.patch > > > CommitLog.add does't really force writes to disk. This could result in acked writes being lost. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.