/[Apache-SVN]
ViewVC logotype

Revision 1543699


Jump to revision: Previous Next
Author: ndimiduk
Date: Wed Nov 20 02:53:51 2013 UTC (10 years, 11 months ago)
Changed paths: 2
Log Message:
HBASE-9893 Incorrect assert condition in OrderedBytes decoding

Correct an invalid assumption in remaining assertion code around
OrderedBytes#decodeVarBlob. When an encoded value contains a 1-bit in its LSB
position and the length of the encoded byte array is divisible by 7, the value
remaining in variable t will be 0x80, resulting in the failed assertion coming
out of the decoding loop. This patch preserves the assertion for the general
case by resetting 't' at the conclusion of the 7-byte cycle.


Changed paths

Path Details
Directoryhbase/trunk/hbase-common/src/main/java/org/apache/hadoop/hbase/util/OrderedBytes.java modified , text changed
Directoryhbase/trunk/hbase-common/src/test/java/org/apache/hadoop/hbase/util/TestOrderedBytes.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26