Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-14906

FastByteOperations.UnsafeOperations fails to handle read only byte buffers correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Low
    • Resolution: Unresolved
    • 5.x
    • Legacy/Core
    • None
    • Low

    Description

      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.

      Attachments

        1. 14906-testall.png
          135 kB
          Alex Sorokoumov
        2. 14906-dtest.png
          34 kB
          Alex Sorokoumov

        Activity

          People

            Gerrrr Alex Sorokoumov
            Gerrrr Alex Sorokoumov
            Alex Sorokoumov
            Ekaterina Dimitrova
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: