Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.14.0
Description
MembershipIntegrationTest.locatorsStopWaitingForLocatorWaitTimeIfAllLocatorsContacted() correctly waits for locators to start but then fails to wait for locators' views to be updated.
This code:
assertThat(membership0.getView().getMembers()).hasSize(2);
…doesn't wait. This results in an exception sometimes:
org.apache.geode.distributed.internal.membership.gms.MembershipIntegrationTest > locatorsStopWaitingForLocatorWaitTimeIfAllLocatorsContacted FAILED java.lang.AssertionError: Expected size:<2> but was:<1> in: <[172.17.0.30(1:locator)<ec><v0>:41000]> at org.apache.geode.distributed.internal.membership.gms.MembershipIntegrationTest.locatorsStopWaitingForLocatorWaitTimeIfAllLocatorsContacted(MembershipIntegrationTest.java:308)
A Band-Aid would be to put an awaitility call around the two such hasSize() calls. A better fix would be to make the test deterministic per GEODE-8589.
Attachments
Issue Links
- relates to
-
GEODE-8589 make locatorsStopWaitingForLocatorWaitTimeIfAllLocatorsContacted test deterministic
- Open
- links to