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

FastByteOperations.UnsafeOperations fails to handle read only byte buffers correctly

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Patch Available
    • Priority: Low
    • Resolution: Unresolved
    • Fix Version/s: 4.x
    • Component/s: Legacy/Core
    • Labels:
      None
    • Severity:
      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-dtest.png
          34 kB
          Aleksandr Sorokoumov
        2. 14906-testall.png
          135 kB
          Aleksandr Sorokoumov

          Activity

            People

            • Assignee:
              Gerrrr Aleksandr Sorokoumov
              Reporter:
              Gerrrr Aleksandr Sorokoumov
              Authors:
              Aleksandr Sorokoumov
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: