HBASE-8829 Improve failed TestMetaScanner assert message so can see where/why failure
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1497908 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a0e51bc4da
commit
fc471152da
|
@ -201,7 +201,8 @@ public class TestMetaScanner {
|
|||
endKey = Bytes.toLong(hri.getEndKey());
|
||||
}
|
||||
LOG.info("start:" + startKey + " end:" + endKey + " hri:" + hri);
|
||||
Assert.assertTrue(Bytes.equals(lastEndKey, hri.getStartKey()));
|
||||
Assert.assertTrue("lastEndKey=" + Bytes.toString(lastEndKey) + ", startKey=" +
|
||||
Bytes.toString(hri.getStartKey()), Bytes.equals(lastEndKey, hri.getStartKey()));
|
||||
lastEndKey = hri.getEndKey();
|
||||
}
|
||||
Assert.assertTrue(Bytes.equals(lastEndKey, HConstants.EMPTY_END_ROW));
|
||||
|
|
Loading…
Reference in New Issue