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 70d2f37ee3
commit e6c78f4037
No known key found for this signature in database
GPG Key ID: B3D6C0B41C8ADFD5
1 changed files with 3 additions and 3 deletions

View File

@ -447,7 +447,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());
} }
} }
@ -478,7 +478,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() {
@ -515,7 +515,7 @@ public class HFilePerformanceEvaluation {
return; return;
} }
c = scanner.getCell(); c = scanner.getCell();
PerformanceEvaluationCommons.assertValueSize(c.getValueLength(), ROW_LENGTH); PerformanceEvaluationCommons.assertValueSize(ROW_LENGTH, c.getValueLength());
} }
} }