HBASE-25179 : Fix Assert format in HFilePerformanceEvaluation class
Closes #2551 Signed-off-by: Viraj Jasani <vjasani@apache.org>
This commit is contained in:
parent
70d2f37ee3
commit
e6c78f4037
|
@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue