You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by vj...@apache.org on 2020/10/16 06:40:05 UTC
[hbase] branch branch-2.3 updated: HBASE-25179 : Fix Assert format
in HFilePerformanceEvaluation class
This is an automated email from the ASF dual-hosted git repository.
vjasani pushed a commit to branch branch-2.3
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2.3 by this push:
new c7f95ff HBASE-25179 : Fix Assert format in HFilePerformanceEvaluation class
c7f95ff is described below
commit c7f95fffbdb9381bd3d552715be2138ef63d3dce
Author: shahrs87 <sh...@gmail.com>
AuthorDate: Fri Oct 16 12:04:10 2020 +0530
HBASE-25179 : Fix Assert format in HFilePerformanceEvaluation class
Closes #2551
Signed-off-by: Viraj Jasani <vj...@apache.org>
---
.../java/org/apache/hadoop/hbase/HFilePerformanceEvaluation.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/HFilePerformanceEvaluation.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/HFilePerformanceEvaluation.java
index 4e9a39f..9268b1e 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/HFilePerformanceEvaluation.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/HFilePerformanceEvaluation.java
@@ -433,7 +433,7 @@ public class HFilePerformanceEvaluation {
// TODO: Fix. Make Scanner do Cells.
Cell c = this.scanner.getCell();
PerformanceEvaluationCommons.assertKey(format(i + 1), c);
- PerformanceEvaluationCommons.assertValueSize(c.getValueLength(), ROW_LENGTH);
+ PerformanceEvaluationCommons.assertValueSize(ROW_LENGTH, c.getValueLength());
}
}
@@ -464,7 +464,7 @@ public class HFilePerformanceEvaluation {
// TODO: Fix scanner so it does Cells
Cell c = scanner.getCell();
PerformanceEvaluationCommons.assertKey(b, c);
- PerformanceEvaluationCommons.assertValueSize(c.getValueLength(), ROW_LENGTH);
+ PerformanceEvaluationCommons.assertValueSize(ROW_LENGTH, c.getValueLength());
}
private byte [] getRandomRow() {
@@ -501,7 +501,7 @@ public class HFilePerformanceEvaluation {
return;
}
c = scanner.getCell();
- PerformanceEvaluationCommons.assertValueSize(c.getValueLength(), ROW_LENGTH);
+ PerformanceEvaluationCommons.assertValueSize(ROW_LENGTH, c.getValueLength());
}
}