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