You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Sylvain Lebresne (JIRA)" <ji...@apache.org> on 2010/12/13 10:01:01 UTC
[jira] Commented: (CASSANDRA-1847) ByteBufferUtil.clone shouldn't
mutate the passed bytebuffer
[ https://issues.apache.org/jira/browse/CASSANDRA-1847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12970751#action_12970751 ]
Sylvain Lebresne commented on CASSANDRA-1847:
---------------------------------------------
+1 on v2
> ByteBufferUtil.clone shouldn't mutate the passed bytebuffer
> -----------------------------------------------------------
>
> Key: CASSANDRA-1847
> URL: https://issues.apache.org/jira/browse/CASSANDRA-1847
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Affects Versions: 0.7.0 rc 2
> Reporter: T Jake Luciani
> Assignee: T Jake Luciani
> Priority: Minor
> Attachments: 1847-v2.txt, 1847_v1.txt
>
>
> Currently ByteBufferUtil.clone uses .mark and .reset on the passed ByteBuffer.
> This is fine when using thrift because no two ByteBuffer are being accessed at the same time, but this could be thread-unsafe if the same BB was passed concurrently.
> Solandra is having problems with this (Solandra shares JVM with Cassandra).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.