hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Heng Chen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-14905) VerifyReplication does not honour versions option
Date Wed, 02 Dec 2015 08:46:10 GMT

    [ https://issues.apache.org/jira/browse/HBASE-14905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15035473#comment-15035473
] 

Heng Chen commented on HBASE-14905:
-----------------------------------

Hi, [~vishk] 

I can't reproduce it locally,  if row in source has different cells with row in target, it
will throw exception,  So GoodRows counter is always 0 and badRows count is 1.

{code: title=Result.java}
 768  if (res1.size() != res2.size()) {
 769     throw new Exception("This row doesn't have the same number of KVs: "
 770         + res1.toString() + " compared to " + res2.toString());
 771    }
{code}

Wound you mind upload your test patch?



> VerifyReplication does not honour versions option
> -------------------------------------------------
>
>                 Key: HBASE-14905
>                 URL: https://issues.apache.org/jira/browse/HBASE-14905
>             Project: HBase
>          Issue Type: Bug
>          Components: tooling
>            Reporter: Vishal Khandelwal
>
> source:
> hbase(main):001:0> scan 't1', {RAW => true, VERSIONS => 100}
> ROW                                      COLUMN+CELL                                
                                                                          
>  r1                                      column=f1:, timestamp=1449030102091, value=value1112
                                                                 
>  r1                                      column=f1:, timestamp=1449029774173, value=value1001
                                                                 
>  r1                                      column=f1:, timestamp=1449029709974, value=value1002
                                                                 
> target:
> hbase(main):023:0> scan 't1', {RAW => true, VERSIONS => 100}
> ROW                                      COLUMN+CELL                                
                                                                          
>  r1                                      column=f1:, timestamp=1449030102091, value=value1112
                                                                 
>  r1                                      column=f1:, timestamp=1449030090758, value=value1112
                                                                 
>  r1                                      column=f1:, timestamp=1449029984282, value=value1111
                                                                 
>  r1                                      column=f1:, timestamp=1449029774173, value=value1001
                                                                 
>  r1                                      column=f1:, timestamp=1449029709974, value=value1002
  
> /bin/hbase org.apache.hadoop.hbase.mapreduce.replication.VerifyReplication --versions=100
1 t1
> org.apache.hadoop.hbase.mapreduce.replication.VerifyReplication$Verifier$Counters
> 		GOODROWS=1
> Does not show any mismatch. Ideally it should show. This is because in 
> VerifyReplication Class maxVersion is not correctly set.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message