hbase git commit: HBASE-16541 Avoid unnecessary cell copy in Result#compareResults (ChiaPing Tsai)

2016-09-04 Thread tedyu
Repository: hbase
Updated Branches:
  refs/heads/branch-1 abbb36f62 -> a0e52a2da


HBASE-16541 Avoid unnecessary cell copy in Result#compareResults (ChiaPing Tsai)


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/a0e52a2d
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/a0e52a2d
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/a0e52a2d

Branch: refs/heads/branch-1
Commit: a0e52a2dabbd56a5126a1b981a5749bfeb89980e
Parents: abbb36f
Author: tedyu 
Authored: Sun Sep 4 07:08:38 2016 -0700
Committer: tedyu 
Committed: Sun Sep 4 07:08:38 2016 -0700

--
 .../src/main/java/org/apache/hadoop/hbase/client/Result.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/hbase/blob/a0e52a2d/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Result.java
--
diff --git 
a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Result.java 
b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Result.java
index 3e645b0..3074d3e 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Result.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Result.java
@@ -847,7 +847,7 @@ public class Result implements CellScannable, CellScanner {
 Cell[] replicatedKVs = res2.rawCells();
 for (int i = 0; i < res1.size(); i++) {
   if (!ourKVs[i].equals(replicatedKVs[i]) ||
-  !Bytes.equals(CellUtil.cloneValue(ourKVs[i]), 
CellUtil.cloneValue(replicatedKVs[i]))) {
+  !CellUtil.matchingValue(ourKVs[i], replicatedKVs[i])) {
 throw new Exception("This result was different: "
 + res1.toString() + " compared to " + res2.toString());
   }



hbase git commit: HBASE-16541 Avoid unnecessary cell copy in Result#compareResults (ChiaPing Tsai)

2016-09-04 Thread tedyu
Repository: hbase
Updated Branches:
  refs/heads/master 91227f8f9 -> ab07f0087


HBASE-16541 Avoid unnecessary cell copy in Result#compareResults (ChiaPing Tsai)


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/ab07f008
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/ab07f008
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/ab07f008

Branch: refs/heads/master
Commit: ab07f0087b8c5efcb1b084e42f4941ddb0c8885e
Parents: 91227f8
Author: tedyu 
Authored: Sun Sep 4 07:06:31 2016 -0700
Committer: tedyu 
Committed: Sun Sep 4 07:06:31 2016 -0700

--
 .../src/main/java/org/apache/hadoop/hbase/client/Result.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/hbase/blob/ab07f008/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Result.java
--
diff --git 
a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Result.java 
b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Result.java
index c7393f6..f1e7cc4 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Result.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Result.java
@@ -773,7 +773,7 @@ public class Result implements CellScannable, CellScanner {
 Cell[] replicatedKVs = res2.rawCells();
 for (int i = 0; i < res1.size(); i++) {
   if (!ourKVs[i].equals(replicatedKVs[i]) ||
-  !Bytes.equals(CellUtil.cloneValue(ourKVs[i]), 
CellUtil.cloneValue(replicatedKVs[i]))) {
+  !CellUtil.matchingValue(ourKVs[i], replicatedKVs[i])) {
 throw new Exception("This result was different: "
 + res1.toString() + " compared to " + res2.toString());
   }