Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.98.1
    • 0.99.0, 0.98.2
    • Scanners
    • None
    • Reviewed

    Description

      From HBASE-10936.

      testZeroByte[1](org.apache.hadoop.hbase.io.encoding.TestDataBlockEncoders)  Time elapsed: 0.008 sec  <<< ERROR!
      java.lang.IndexOutOfBoundsException
              at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:138)
              at java.io.DataOutputStream.write(DataOutputStream.java:107)
              at org.apache.hadoop.hbase.util.ByteBufferUtils.copyBufferToStream(ByteBufferUtils.java:163)
              at org.apache.hadoop.hbase.util.ByteBufferUtils.moveBufferToStream(ByteBufferUtils.java:147)
              at org.apache.hadoop.hbase.io.encoding.PrefixKeyDeltaEncoder.addKV(PrefixKeyDeltaEncoder.java:70)
              at org.apache.hadoop.hbase.io.encoding.PrefixKeyDeltaEncoder.internalEncodeKeyValues(PrefixKeyDeltaEncoder.java:87)
              at org.apache.hadoop.hbase.io.encoding.BufferedDataBlockEncoder.encodeKeyValues(BufferedDataBlockEncoder.java:591)
              at org.apache.hadoop.hbase.io.encoding.PrefixKeyDeltaEncoder.encodeKeyValues(PrefixKeyDeltaEncoder.java:44)
              at org.apache.hadoop.hbase.io.encoding.TestDataBlockEncoders.encodeBytes(TestDataBlockEncoders.java:100)
              at org.apache.hadoop.hbase.io.encoding.TestDataBlockEncoders.testAlgorithm(TestDataBlockEncoders.java:112)
              at org.apache.hadoop.hbase.io.encoding.TestDataBlockEncoders.testEncodersOnDataset(TestDataBlockEncoders.java:423)
              at org.apache.hadoop.hbase.io.encoding.TestDataBlockEncoders.testZeroByte(TestDataBlockEncoders.java:208)
      

      See attached test case.

      Attachments

        1. 10936-0.98.txt
          1 kB
          Andrew Kyle Purtell
        2. HBASE-10972.patch
          1 kB
          ramkrishna.s.vasudevan

        Activity

          People

            ram_krish ramkrishna.s.vasudevan
            apurtell Andrew Kyle Purtell
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: