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

[BC break] : Get and Scan operation with a custom converter_class not working

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.1.0, 2.0.0, 2.0.1, 2.0.2
    • Fix Version/s: 3.0.0, 2.2.0, 2.1.1, 2.0.3
    • Component/s: shell
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Consider a simple scenario:

      create 'foo', {NAME => 'f1'}
      put 'foo','r1','f1:a',1000
      get 'foo','r1',{COLUMNS => ['f1:a:c(org.apache.hadoop.hbase.util.Bytes).len']} 
      scan 'foo',{COLUMNS => ['f1:a:c(org.apache.hadoop.hbase.util.Bytes).len']}

      Both get and scan fails with ERROR

      ERROR: wrong number of arguments (3 for 1) 

      Looks like in table.rb file converter_method expects 3 arguments [(bytes, offset, len)] since version 2.0.0, prior to version 2.0.0 it was taking only 1 argument [(bytes)]

        Attachments

        1. HBASE-21178.master.003.patch
          3 kB
          Subrat Mishra
        2. HBASE-21178.master.002.patch
          3 kB
          Subrat Mishra
        3. HBASE-21178.master.001.patch
          1 kB
          Subrat Mishra

          Issue Links

            Activity

              People

              • Assignee:
                subrat.mishra Subrat Mishra
                Reporter:
                subrat.mishra Subrat Mishra
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: