HBASE-25179 : Fix Assert format in HFilePerformanceEvaluation class

Closes #2551

Signed-off-by: Viraj Jasani <vjasani@apache.org>
This commit is contained in:
shahrs87 2020-10-16 12:04:10 +05:30 committed by Viraj Jasani
parent fc4957f456
commit 06bb12ed83
No known key found for this signature in database
GPG Key ID: B3D6C0B41C8ADFD5
1 changed files with 3 additions and 3 deletions

View File

@ -433,7 +433,7 @@ public class HFilePerformanceEvaluation {
// TODO: Fix. Make Scanner do Cells. // TODO: Fix. Make Scanner do Cells.
Cell c = this.scanner.getCell(); Cell c = this.scanner.getCell();
PerformanceEvaluationCommons.assertKey(format(i + 1), c); 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 // TODO: Fix scanner so it does Cells
Cell c = scanner.getCell(); Cell c = scanner.getCell();
PerformanceEvaluationCommons.assertKey(b, c); PerformanceEvaluationCommons.assertKey(b, c);
PerformanceEvaluationCommons.assertValueSize(c.getValueLength(), ROW_LENGTH); PerformanceEvaluationCommons.assertValueSize(ROW_LENGTH, c.getValueLength());
} }
private byte [] getRandomRow() { private byte [] getRandomRow() {
@ -501,7 +501,7 @@ public class HFilePerformanceEvaluation {
return; return;
} }
c = scanner.getCell(); c = scanner.getCell();
PerformanceEvaluationCommons.assertValueSize(c.getValueLength(), ROW_LENGTH); PerformanceEvaluationCommons.assertValueSize(ROW_LENGTH, c.getValueLength());
} }
} }