You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Aleksandr Sorokoumov (JIRA)" <ji...@apache.org> on 2018/11/21 15:30:00 UTC

[jira] [Commented] (CASSANDRA-14906) FastByteOperations.UnsafeOperations fails to handle read only byte buffers correctly

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

Aleksandr Sorokoumov commented on CASSANDRA-14906:
--------------------------------------------------

CI:
* [dtest|https://issues.apache.org/jira/secure/attachment/12949061/14906-dtest.png]  
* [testall|https://issues.apache.org/jira/secure/attachment/12949060/14906-testall.png]

> FastByteOperations.UnsafeOperations fails to handle read only byte buffers correctly
> ------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-14906
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-14906
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>            Reporter: Aleksandr Sorokoumov
>            Assignee: Aleksandr Sorokoumov
>            Priority: Minor
>             Fix For: 4.x
>
>         Attachments: 14906-dtest.png, 14906-testall.png
>
>
> If a buffer is read only it reports having no array, though it may well be backed by an array. Code in UnsafeOperation works under the impression that a buffer for which hasArray() == false is necessarily a direct buffer. Which is not the case.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org