HBASE-1347 HTable.incrementColumnValue does not take negative 'amount'
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@770992 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4ce9bb1e86
commit
3e0be569b2
|
@ -27,7 +27,6 @@ import java.nio.ByteBuffer;
|
|||
import java.util.Comparator;
|
||||
import java.math.BigInteger;
|
||||
|
||||
import org.apache.hadoop.hbase.DoNotRetryIOException;
|
||||
import org.apache.hadoop.hbase.HConstants;
|
||||
import org.apache.hadoop.hbase.io.ImmutableBytesWritable;
|
||||
import org.apache.hadoop.io.RawComparator;
|
||||
|
@ -937,7 +936,7 @@ public class Bytes {
|
|||
val.length);
|
||||
val = newvalue;
|
||||
} else if (val.length > SIZEOF_LONG) {
|
||||
throw new DoNotRetryIOException("Increment Bytes - value too big: " +
|
||||
throw new IllegalArgumentException("Increment Bytes - value too big: " +
|
||||
val.length);
|
||||
}
|
||||
if(amount == 0) return val;
|
||||
|
|
Loading…
Reference in New Issue