[ 
https://issues.apache.org/jira/browse/CASSANDRA-3333?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13125011#comment-13125011
 ] 

Brandon Williams commented on CASSANDRA-3333:
---------------------------------------------

Doesn't quite work:

{noformat}

 INFO 08:19:01,875 Creating new commitlog segment 
/var/lib/cassandra/commitlog/CommitLog-1318339141875.log
ERROR 08:19:01,884 Fatal exception in thread Thread[COMMIT-LOG-WRITER,5,main]
java.lang.AssertionError
        at 
org.apache.cassandra.utils.FBUtilities.serialize(FBUtilities.java:782)
        at 
org.apache.cassandra.db.RowMutation.getSerializedBuffer(RowMutation.java:278)
        at 
org.apache.cassandra.db.commitlog.CommitLogSegment.write(CommitLogSegment.java:122)
        at 
org.apache.cassandra.db.commitlog.CommitLog$LogRecordAdder.run(CommitLog.java:605)
        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}
                
> remove more copies from read/write network path
> -----------------------------------------------
>
>                 Key: CASSANDRA-3333
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3333
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Jonathan Ellis
>            Assignee: Jonathan Ellis
>            Priority: Minor
>              Labels: network
>             Fix For: 1.0.1
>
>         Attachments: 0001-clean-up-Serializer-mess.patch, 
> 0002-introduce-FBUtilities.serialize-to-reduce-copies.patch, 
> 0002-reduce-copies.patch
>
>
> RowMutation.serializedBuffer and ReadVerbHandler both do an extra copy of the 
> serialized data. We can avoid this be pre-computing the serialized size and 
> allocating an appropriate buffer.

--
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

        

Reply via email to