[ https://issues.apache.org/jira/browse/HBASE-21178?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16610143#comment-16610143 ]
Subrat Mishra commented on HBASE-21178: --------------------------------------- [~anoop.hbase], Bytes.len accepts only one argument (bytes), it does not have offset and length. So above mentioned test case fails which used to work in older versions. Some of the users have written custom converter classes which started failing after the upgrade because of the change in method signature. Earlier it used to be "method.call(org.apache.hadoop.hbase.CellUtil.cloneValue(kv))" {code:java} method = eval(klazz_name).method(converter) return method.call(org.apache.hadoop.hbase.CellUtil.cloneValue(kv)) # apply the converter{code} > Get and Scan operation with converter_class not working > ------------------------------------------------------- > > Key: HBASE-21178 > URL: https://issues.apache.org/jira/browse/HBASE-21178 > Project: HBase > Issue Type: Bug > Reporter: Subrat Mishra > Assignee: Subrat Mishra > Priority: Major > Attachments: HBASE-21178.master.001.patch > > > Consider a simple scenario: > {code:java} > 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']}{code} > Both get and scan fails with ERROR > {code:java} > ERROR: wrong number of arguments (3 for 1) {code} > 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)] -- This message was sent by Atlassian JIRA (v7.6.3#76005)