HBASE-21242 [amv2] Miscellaneous minor log and assign procedure create improvements; ADDENDUM Fix TestHRegionInfo

This commit is contained in:
Michael Stack 2018-10-12 12:39:18 -07:00
parent fecaf4737c
commit 19cb105a7e

View File

@ -339,7 +339,12 @@ public class TestHRegionInfo {
origDesc.indexOf(Bytes.toStringBinary(startKey)) +
Bytes.toStringBinary(startKey).length());
assert(firstPart.equals(firstPartOrig));
assert(secondPart.equals(secondPartOrig));
// The elapsed time may be different in the two Strings since they were calculated at different
// times... so, don't include that portion when we compare. It starts with a '('.
int indexOfElapsedTime = secondPart.indexOf("(");
assertTrue(indexOfElapsedTime > 0);
assert(secondPart.substring(0, indexOfElapsedTime).
equals(secondPartOrig.substring(0, indexOfElapsedTime)));
}
private void checkEquality(HRegionInfo h, Configuration conf) throws IOException {