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

TestScannerModel fails if using jackson 1.9.13

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.98.7, 0.99.1, 2.0.0
    • Fix Version/s: 0.98.7, 0.99.1
    • Component/s: REST
    • Labels:
      None
    • Environment:

      hadoop-2.5.0

    • Hadoop Flags:
      Incompatible change, Reviewed
    • Release Note:
      Hide
      The XML element used for the visibility labels in the REST API has been renamed from "label" lo "labels" in order to support old and the new versions of jackson.

      Developers that use visibility labels via REST XML need to modify their applications in order to use the new XML element name.
      Show
      The XML element used for the visibility labels in the REST API has been renamed from "label" lo "labels" in order to support old and the new versions of jackson. Developers that use visibility labels via REST XML need to modify their applications in order to use the new XML element name.

      Description

      TestScannerModel fails if jackson 1.9.13 is used. (Hadoop 2.5 now uses that version, see HADOOP-10104):

      Failed tests:   testToJSON(org.apache.hadoop.hbase.rest.model.TestScannerModel): expected:<{"batch":100,"caching":1000,"cacheBlocks":false,"endRow":"enp5eng=","endTime":1245393318192,"maxVersions":2147483647,"startRow":"YWJyYWNhZGFicmE=","startTime":1245219839331,"column":["Y29sdW1uMQ==","Y29sdW1uMjpmb28="],"labels":["private","public"]}> but was:<{"startRow":"YWJyYWNhZGFicmE=","endRow":"enp5eng=","batch":100,"startTime":1245219839331,"endTime":1245393318192,"maxVersions":2147483647,"caching":1000,"cacheBlocks":false,"column":["Y29sdW1uMQ==","Y29sdW1uMjpmb28="],"label":["private","public"]}>
      

      The problem is the annotation used for the labels element which is 'label' instead of 'labels'.

        Attachments

        1. HBASE-12099.v0.txt
          2 kB
          Esteban Gutierrez
        2. 12099-1.txt
          1.0 kB
          Devaraj Das
        3. 12099-2.txt
          3 kB
          Devaraj Das

          Issue Links

            Activity

              People

              • Assignee:
                esteban Esteban Gutierrez
                Reporter:
                esteban Esteban Gutierrez
              • Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: