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 67FF4C627 for ; Wed, 6 Jun 2012 14:59:23 +0000 (UTC) Received: (qmail 87004 invoked by uid 500); 6 Jun 2012 14:59:23 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 86976 invoked by uid 500); 6 Jun 2012 14:59:23 -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 86966 invoked by uid 99); 6 Jun 2012 14:59:23 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jun 2012 14:59:23 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id F1151141663 for ; Wed, 6 Jun 2012 14:59:22 +0000 (UTC) Date: Wed, 6 Jun 2012 14:59:22 +0000 (UTC) From: "Jonathan Ellis (JIRA)" To: commits@cassandra.apache.org Message-ID: <695308899.43808.1338994762989.JavaMail.jiratomcat@issues-vm> In-Reply-To: <1448799127.36566.1338847883142.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (CASSANDRA-4305) CF serialization failure when working with custom secondary indices. 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-4305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13290192#comment-13290192 ] Jonathan Ellis commented on CASSANDRA-4305: ------------------------------------------- (Which is why, the handful of other times this has come up, we've always changed the offending code to not modify the RM concurrently.) > CF serialization failure when working with custom secondary indices. > -------------------------------------------------------------------- > > Key: CASSANDRA-4305 > URL: https://issues.apache.org/jira/browse/CASSANDRA-4305 > Project: Cassandra > Issue Type: Bug > Components: Core > Affects Versions: 1.0.10 > Reporter: Pavel Yaskevich > Labels: datastax_qa > Attachments: CASSANDRA-4305.patch > > > Assertion (below) was triggered when client was adding new rows to Solr-backed secondary indices (1000-row batch without any timeout). > {noformat} > ERROR [COMMIT-LOG-WRITER] 2012-05-30 16:39:02,896 AbstractCassandraDaemon.java (line 139) Fatal exception in thread Thread[COMMIT-LOG-WRITER,5,main] > java.lang.AssertionError: Final buffer length 176 to accomodate data size of 123 (predicted 87) for RowMutation(keyspace='solrTest1338395932411', key='6b6579383039', modifications=[ColumnFamily(cf1 [long:false:8@1338395942384024,stringId:false:13@1338395940586003,])]) > at org.apache.cassandra.utils.FBUtilities.serialize(FBUtilities.java:682) > at org.apache.cassandra.db.RowMutation.getSerializedBuffer(RowMutation.java:279) > at org.apache.cassandra.db.commitlog.CommitLogSegment.write(CommitLogSegment.java:122) > at org.apache.cassandra.db.commitlog.CommitLog$LogRecordAdder.run(CommitLog.java:600) > at org.apache.cassandra.db.commitlog.PeriodicCommitLogExecutorService$1.runMayThrow(PeriodicCommitLogExecutorService.java:49) > at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30) > at java.lang.Thread.run(Thread.java:662) > {noformat} > After investigation it was clear that it was happening because we were holding instances of RowMutation queued to the addition to CommitLog to the actual "write" moment which is redundant. -- 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