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

Value lost if "$" element is before "column" element in json when posted to Rest Server

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 0.94.11
    • None
    • REST
    • None

    Description

      When post following json data to rest server, it return 200, but the value is null in HBase

      {"Row": { "key":"cjI=", "Cell": {"$":"ZGF0YTE=", "column":"ZjE6YzI="}}}
      

      From rest server log, we found the length of value is null after the server paste the json to RowModel object

      14/02/26 17:52:14 DEBUG rest.RowResource: PUT {"totalColumns":1,"families":{"f1":[{"timestamp":9223372036854775807,"qualifier":"c2","vlen":0}]},"row":"r2"}
      

      When the order is that "column" before "$", it works fine.

      {"Row": { "key":"cjI=", "Cell": {"column":"ZjE6YzI=", "$":"ZGF0YTE=" }}}
      

      DIfferent json libs may have different order of this two elements even if "column" is put before "$".

      Attachments

        Activity

          People

            Unassigned Unassigned
            liushaohui Shaohui Liu
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: