You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "stack (JIRA)" <ji...@apache.org> on 2010/07/20 07:31:49 UTC

[jira] Created: (HBASE-2853) TestLoadIncrementalHFiles fails on TRUNK

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.


[jira] Resolved: (HBASE-2853) TestLoadIncrementalHFiles fails on TRUNK

Posted by "stack (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-2853?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

stack resolved HBASE-2853.
--------------------------

         Assignee: stack
    Fix Version/s: 0.90.0
       Resolution: Fixed

Committed.

> TestLoadIncrementalHFiles fails on TRUNK
> ----------------------------------------
>
>                 Key: HBASE-2853
>                 URL: https://issues.apache.org/jira/browse/HBASE-2853
>             Project: HBase
>          Issue Type: Bug
>            Reporter: stack
>            Assignee: stack
>             Fix For: 0.90.0
>
>
> 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.