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

BytesType and batch mutate causes encoded bytes of non-printable characters to be dropped

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Urgent
    • Resolution: Fixed
    • 0.6.5
    • None
    • None
    • Java 1.6 sun JDK
      Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
      Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01,

      Ubuntu 10.04 64 bit

    • Critical

    Description

      When running the two tests, individual column insert works with the values generated. However, batch insert with the same values causes an encoding failure on the key. It appears bytes are dropped from the end of the byte array that represents the key value. See the attached unit test

      Attachments

        1. TestEncodedKeys.java
          8 kB
          Todd Nine
        2. TestByteKeys.py
          1 kB
          Pierre Matri
        3. rowmutation-key-trimming.patch
          1 kB
          Folke Behrens

        Issue Links

          Activity

            People

              messi Folke Behrens
              tnine Todd Nine
              Folke Behrens
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: