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

This reverts commit a9d3ac23d84dcd728ee08f4262e3d9b31df26b7e.

Let me do a better fix, one that does TestHRegionInfo and
TestHRegionInfoDisplay
This commit is contained in:
Michael Stack 2018-10-12 16:07:55 -07:00
parent 19cb105a7e
commit 5762f879d2
No known key found for this signature in database
GPG Key ID: 9816C7FC8ACC93D2
1 changed files with 1 additions and 6 deletions

View File

@ -339,12 +339,7 @@ public class TestHRegionInfo {
origDesc.indexOf(Bytes.toStringBinary(startKey)) + origDesc.indexOf(Bytes.toStringBinary(startKey)) +
Bytes.toStringBinary(startKey).length()); Bytes.toStringBinary(startKey).length());
assert(firstPart.equals(firstPartOrig)); assert(firstPart.equals(firstPartOrig));
// The elapsed time may be different in the two Strings since they were calculated at different assert(secondPart.equals(secondPartOrig));
// 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 { private void checkEquality(HRegionInfo h, Configuration conf) throws IOException {