TestLoadIncrementalHFiles fails on TRUNK
----------------------------------------
Key: HBASE-2853
URL: https://issues.apache.org/jira/browse/HBASE-2853
Project: HBase
Issue Type: Bug
Reporter: stack
Its writing KVs w/ LATEST_TIMESTAMP. Here's fix:
{code}
pynchon-56:hbase stack$ git diff
diff --git
a/src/test/java/org/apache/hadoop/hbase/mapreduce/TestLoadIncrementalHFiles.java
b/src/test/java/org/apache/hadoop/hbase/mapreduce/TestLoadIncrementalHFiles.java
index d5374d2..e02d11a 100644
---
a/src/test/java/org/apache/hadoop/hbase/mapreduce/TestLoadIncrementalHFiles.java
+++
b/src/test/java/org/apache/hadoop/hbase/mapreduce/TestLoadIncrementalHFiles.java
@@ -175,10 +175,11 @@ public class TestLoadIncrementalHFiles {
{
HFile.Writer writer = new HFile.Writer(fs, path, BLOCKSIZE, COMPRESSION,
KeyValue.KEY_COMPARATOR);
+ long now = System.currentTimeMillis();
try {
// subtract 2 since iterateOnSplits doesn't include boundary keys
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);
}
} finally {
{code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.