You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Michael Stack (Jira)" <ji...@apache.org> on 2021/03/12 05:54:00 UTC

[jira] [Resolved] (HBASE-25622) Result#compareResults should compare tags.

     [ https://issues.apache.org/jira/browse/HBASE-25622?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Stack resolved HBASE-25622.
-----------------------------------
    Fix Version/s: 2.4.2
                   2.5.0
                   3.0.0-alpha-1
     Hadoop Flags: Reviewed
       Resolution: Fixed

Pushed to branch-2.4+. Thanks for the patch [~shahrs87]

> Result#compareResults should compare tags.
> ------------------------------------------
>
>                 Key: HBASE-25622
>                 URL: https://issues.apache.org/jira/browse/HBASE-25622
>             Project: HBase
>          Issue Type: Improvement
>          Components: Client
>    Affects Versions: 1.7.0
>            Reporter: Rushabh Shah
>            Assignee: Rushabh Shah
>            Priority: Major
>             Fix For: 3.0.0-alpha-1, 2.5.0, 2.4.2
>
>
> Today +Result#compareResults+ compares the 2 cells based on following parameters.
> {noformat}
>     for (int i = 0; i < res1.size(); i++) {
>       if (!ourKVs[i].equals(replicatedKVs[i]) ||
>           !CellUtil.matchingValue(ourKVs[i], replicatedKVs[i])) {
>         throw new Exception("This result was different: "
>             + res1.toString() + " compared to " + res2.toString());
>       }
> {noformat}
> row, family, qualifier, timestamp, type, value.
> We also need to compare tags to determine if both cells are equal or not.
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)