HBASE-21242 [amv2] Miscellaneous minor log and assign procedure create improvements; ADDENDUM Fix TestHRegionInfo
This commit is contained in:
parent
fecaf4737c
commit
19cb105a7e
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user