Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-8782

Thrift2 can not parse values when using framed transport

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.95.1
    • 0.98.0, 0.95.2, 0.94.10
    • Thrift
    • None

    Description

      ThriftHBaseServiceHandler.java use .array() on table names , and values (family , qualifier in checkandDelete , etc) which resulted in incorrect values with framed transport. Replacing .array() with getBytes() fixed this problem. I've attached the patch

      EDIT: updated the patch to cover checkAndPut(), checkAndDelete()
      UPDATE: updated the patch to use byteBufferToByteArray() instead of getBytes() , also removed unused imports.

      Attachments

        1. HBASE_8782.patch
          6 kB
          Hamed Madani
        2. HBASE_8782_v4.patch
          12 kB
          Hamed Madani
        3. HBASE_8782_v4_0.94.patch
          11 kB
          Lars George
        4. HBASE_8782_v3.patch
          7 kB
          Hamed Madani
        5. HBASE_8782_v2.patch
          7 kB
          Hamed Madani

        Activity

          People

            madani Hamed Madani
            madani Hamed Madani
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: