hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lucian Iordache <lucian.george.iorda...@gmail.com>
Subject BitComparator bug in HBase 0.94.1 - ArrayIndexOutOfBoundsException
Date Thu, 20 Sep 2012 14:53:30 GMT
Hello,

I found a bug in BitComparator implementation from HBase 0.94.1.
The problem is that in the compareTo method, the value from the
BitComparator is compared against the whole buffer of a KeyValue from hbase
and the loop that compares them uses the length of the KeyValue buffer
instead of using the length of the value from the BitComparator object.
Because the length of the KeyValue buffer is bigger than the length of the
value from the BitComparator object, an ArrayIndexOutOfBoundsException
appears.

I've opened a bug for it: https://issues.apache.org/jira/browse/HBASE-6846

Maybe it helps other people that will encounter the problem.

-- 
Regards,
Lucian

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message