You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Anthony Baker (JIRA)" <ji...@apache.org> on 2017/06/17 18:04:21 UTC
[jira] [Closed] (GEODE-2458) RegionManagementDUnitTest fails with
AssertionError in verifyMemberNotifications
[ https://issues.apache.org/jira/browse/GEODE-2458?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Anthony Baker closed GEODE-2458.
--------------------------------
> RegionManagementDUnitTest 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
> Assignee: Kirk Lund
> Labels: Flaky
> Fix For: 1.2.0
>
>
> 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}
> Each of these tests call verifyMemberNotifications and may fail with this timing failure:
> * testDistributedRegion
> * testFixedPRRegionMBean
> * testPartitionedRegion
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)