hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "stack (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HBASE-2853) TestLoadIncrementalHFiles fails on TRUNK
Date Tue, 20 Jul 2010 05:33:49 GMT

     [ 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.


Mime
View raw message