Kirk Lund created GEODE-2458: -------------------------------- Summary: RegionManagementDUnitTest.testFixedPRRegionMBean fails with AssertionError in verifyMemberNotifications Key: GEODE-2458 URL: https://issues.apache.org/jira/browse/GEODE-2458 Project: Geode Issue Type: Bug Components: management, tests Reporter: Kirk Lund
This appears to be a race condition. The assertion finds 5 members when 6 is expected and then lists the members as part of the assertion message which then shows 6 members. {noformat} org.apache.geode.management.RegionManagementDUnitTest > testFixedPRRegionMBean FAILED org.apache.geode.test.dunit.RMIException: While invoking org.apache.geode.test.dunit.NamedRunnable.run in VM 0 running on Host 242824700ff7 with 4 VMs at org.apache.geode.test.dunit.VM.invoke(VM.java:377) at org.apache.geode.test.dunit.VM.invoke(VM.java:347) at org.apache.geode.test.dunit.VM.invoke(VM.java:280) at org.apache.geode.management.RegionManagementDUnitTest.verifyMemberNotifications(RegionManagementDUnitTest.java:580) at org.apache.geode.management.RegionManagementDUnitTest.testFixedPRRegionMBean(RegionManagementDUnitTest.java:227) Caused by: java.lang.AssertionError: Expected size:<6> but was:<5> in: <[javax.management.Notification[source=172.17.0.4(161)<v37>-32770][type=gemfire.distributedsystem.cache.region.created][message=Region Created With Name /MANAGEMENT_FIXED_PR], javax.management.Notification[source=172.17.0.4(166)<v38>-32771][type=gemfire.distributedsystem.cache.region.created][message=Region Created With Name /MANAGEMENT_FIXED_PR], javax.management.Notification[source=172.17.0.4(171)<v39>-32772][type=gemfire.distributedsystem.cache.region.created][message=Region Created With Name /MANAGEMENT_FIXED_PR], javax.management.Notification[source=172.17.0.4(161)<v37>-32770][type=gemfire.distributedsystem.cache.region.closed][message=Region Destroyed/Closed With Name /MANAGEMENT_FIXED_PR], javax.management.Notification[source=172.17.0.4(166)<v38>-32771][type=gemfire.distributedsystem.cache.region.closed][message=Region Destroyed/Closed With Name /MANAGEMENT_FIXED_PR], javax.management.Notification[source=172.17.0.4(171)<v39>-32772][type=gemfire.distributedsystem.cache.region.closed][message=Region Destroyed/Closed With Name /MANAGEMENT_FIXED_PR]]> at org.apache.geode.management.RegionManagementDUnitTest.lambda$verifyMemberNotifications$3d0515b3$1(RegionManagementDUnitTest.java:582) {noformat} -- This message was sent by Atlassian JIRA (v6.3.15#6346)