HADOOP-2414 Fix ArrayIndexOutOfBoundsException in bloom filters.
git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk/src/contrib/hbase@604281 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b36f712736
commit
10bac1971d
|
@ -80,6 +80,7 @@ Trunk (unreleased changes)
|
||||||
HADOOP-2417 Fix critical shutdown problem introduced by HADOOP-2338
|
HADOOP-2417 Fix critical shutdown problem introduced by HADOOP-2338
|
||||||
HADOOP-2418 Fix assertion failures in TestTableMapReduce, TestTableIndex,
|
HADOOP-2418 Fix assertion failures in TestTableMapReduce, TestTableIndex,
|
||||||
and TestTableJoinMapReduce
|
and TestTableJoinMapReduce
|
||||||
|
HADOOP-2414 Fix ArrayIndexOutOfBoundsException in bloom filters.
|
||||||
|
|
||||||
IMPROVEMENTS
|
IMPROVEMENTS
|
||||||
HADOOP-2401 Add convenience put method that takes writable
|
HADOOP-2401 Add convenience put method that takes writable
|
||||||
|
|
|
@ -112,7 +112,7 @@ public final class HashFunction{
|
||||||
}
|
}
|
||||||
int[] result = new int[nbHash];
|
int[] result = new int[nbHash];
|
||||||
for (int i = 0, initval = 0; i < nbHash; i++) {
|
for (int i = 0, initval = 0; i < nbHash; i++) {
|
||||||
initval = result[i] = Math.abs(JenkinsHash.hash(b, initval)) % maxValue;
|
initval = result[i] = Math.abs(JenkinsHash.hash(b, initval) % maxValue);
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}//end hash()
|
}//end hash()
|
||||||
|
|
Loading…
Reference in New Issue