HBASE-2853 TestLoadIncrementalHFiles fails on TRUNK
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@965726 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d1179f8829
commit
4cfa381f4d
|
@ -444,6 +444,7 @@ Release 0.21.0 - Unreleased
|
||||||
(Nicolas Spiegelberg via Stack)
|
(Nicolas Spiegelberg via Stack)
|
||||||
HBASE-2851 Remove testDynamicBloom() unit test
|
HBASE-2851 Remove testDynamicBloom() unit test
|
||||||
(Nicolas Spiegelberg via Stack)
|
(Nicolas Spiegelberg via Stack)
|
||||||
|
HBASE-2853 TestLoadIncrementalHFiles fails on TRUNK
|
||||||
|
|
||||||
|
|
||||||
IMPROVEMENTS
|
IMPROVEMENTS
|
||||||
|
|
|
@ -175,10 +175,11 @@ public class TestLoadIncrementalHFiles {
|
||||||
{
|
{
|
||||||
HFile.Writer writer = new HFile.Writer(fs, path, BLOCKSIZE, COMPRESSION,
|
HFile.Writer writer = new HFile.Writer(fs, path, BLOCKSIZE, COMPRESSION,
|
||||||
KeyValue.KEY_COMPARATOR);
|
KeyValue.KEY_COMPARATOR);
|
||||||
|
long now = System.currentTimeMillis();
|
||||||
try {
|
try {
|
||||||
// subtract 2 since iterateOnSplits doesn't include boundary keys
|
// subtract 2 since iterateOnSplits doesn't include boundary keys
|
||||||
for (byte[] key : Bytes.iterateOnSplits(startKey, endKey, numRows-2)) {
|
for (byte[] key : Bytes.iterateOnSplits(startKey, endKey, numRows-2)) {
|
||||||
KeyValue kv = new KeyValue(key, family, qualifier, key);
|
KeyValue kv = new KeyValue(key, family, qualifier, now, key);
|
||||||
writer.append(kv);
|
writer.append(kv);
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
|
|
Loading…
Reference in New Issue