Return-Path: Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: (qmail 36306 invoked from network); 2 Mar 2011 20:21:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Mar 2011 20:21:00 -0000 Received: (qmail 64370 invoked by uid 500); 2 Mar 2011 20:20:59 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 64352 invoked by uid 500); 2 Mar 2011 20:20:59 -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 64344 invoked by uid 99); 2 Mar 2011 20:20:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Mar 2011 20:20:59 +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; Wed, 02 Mar 2011 20:20:57 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id F07FD4C05D for ; Wed, 2 Mar 2011 20:20:36 +0000 (UTC) Date: Wed, 2 Mar 2011 20:20:36 +0000 (UTC) From: "T Jake Luciani (JIRA)" To: commits@cassandra.apache.org Message-ID: <1542447906.8726.1299097236981.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1038152356.2959.1298928637363.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Commented: (CASSANDRA-2256) BRAF assertion error 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-2256?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13001597#comment-13001597 ] T Jake Luciani commented on CASSANDRA-2256: ------------------------------------------- The counter argument is we call seek() 2 times for every row in SSTableWriter. So we need to make sure we don't call stat() unless we have no other choice. Another approach would be to set fileLength based on the total number of bytes from the starting size, or 0 for a new file... > BRAF assertion error > -------------------- > > Key: CASSANDRA-2256 > URL: https://issues.apache.org/jira/browse/CASSANDRA-2256 > Project: Cassandra > Issue Type: Bug > Components: Core > Affects Versions: 0.7.3 > Reporter: Jonathan Ellis > Assignee: Pavel Yaskevich > Fix For: 0.7.4 > > Attachments: CASSANDRA-2256.patch > > > While investigating CASSANDRA-2240 I ran into this: > {noformat} > java.lang.AssertionError > at org.apache.cassandra.io.util.BufferedRandomAccessFile.read(BufferedRandomAccessFile.java\ > :230) > at java.io.RandomAccessFile.readByte(RandomAccessFile.java:589) > at org.apache.cassandra.utils.ByteBufferUtil.readShortLength(ByteBufferUtil.java:273) > at org.apache.cassandra.utils.ByteBufferUtil.readWithShortLength(ByteBufferUtil.java:284) > at org.apache.cassandra.db.CompactionManager.doScrub(CompactionManager.java:539) > {noformat} -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira