[ https://issues.apache.org/jira/browse/GEODE-8825?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17359660#comment-17359660 ]
Barrett Oglesby commented on GEODE-8825: ---------------------------------------- This test doesn't really do anything. Its too fast for the verifyMBeanProxiesDoesNotExist method to verify anything properly. For each member, the test does: - create receiver - start receiver - stop receiver - destroy receiver Then it verifies in the manager that none of the mbean proxies exist. The mbean is created when the receiver is created, and destroyed when the receiver is destroyed. The problem is creating the proxy in the manager is asynchronous to creating the mbean the local member. There is a Management Task thread that runs (every 2 seconds) in each member and sends the mbeans to the manager. So, after the steps above are complete, the mbean hasn't even been sent to the manager yet. Its almost always going to pass except in the case where the Management Task runs between the create and the verification. In that case, the proxies will exist, and the test will fail. > CI failure: GatewayReceiverMBeanDUnitTest > > testMBeanAndProxiesForGatewayReceiverAreRemovedOnDestroy > ---------------------------------------------------------------------------------------------------- > > Key: GEODE-8825 > URL: https://issues.apache.org/jira/browse/GEODE-8825 > Project: Geode > Issue Type: Bug > Components: tests, wan > Reporter: Jianxia Chen > Priority: Major > Labels: flaky > > {code:java} > org.apache.geode.internal.cache.wan.GatewayReceiverMBeanDUnitTest > > testMBeanAndProxiesForGatewayReceiverAreRemovedOnDestroy FAILED > org.apache.geode.test.dunit.RMIException: While invoking > org.apache.geode.internal.cache.wan.GatewayReceiverMBeanDUnitTest$$Lambda$202/0x00000001008f0c40.run > in VM 0 running on Host c3e48bdac460 with 4 VMs > at org.apache.geode.test.dunit.VM.executeMethodOnObject(VM.java:623) > at org.apache.geode.test.dunit.VM.invoke(VM.java:447) > at > org.apache.geode.internal.cache.wan.GatewayReceiverMBeanDUnitTest.testMBeanAndProxiesForGatewayReceiverAreRemovedOnDestroy(GatewayReceiverMBeanDUnitTest.java:76) > Caused by: > java.lang.AssertionError: expected null, but was:<ObjectName = > GemFire:service=GatewayReceiver,type=Member,member=172.17.0.18(183)<v10>-41002> > at org.junit.Assert.fail(Assert.java:89) > at org.junit.Assert.failNotNull(Assert.java:756) > at org.junit.Assert.assertNull(Assert.java:738) > at org.junit.Assert.assertNull(Assert.java:748) > at > org.apache.geode.internal.cache.wan.GatewayReceiverMBeanDUnitTest.verifyMBeanProxiesDoesNotExist(GatewayReceiverMBeanDUnitTest.java:106) > at > org.apache.geode.internal.cache.wan.GatewayReceiverMBeanDUnitTest.lambda$testMBeanAndProxiesForGatewayReceiverAreRemovedOnDestroy$bb17a952$3(GatewayReceiverMBeanDUnitTest.java:76) > {code} > https://concourse.apachegeode-ci.info/teams/main/pipelines/apache-develop-main/jobs/DistributedTestOpenJDK11/builds/704 > =-=-=-=-=-=-=-=-=-=-=-=-=-=-= Test Results URI > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > http://files.apachegeode-ci.info/builds/apache-develop-main/1.14.0-build.0601/test-results/distributedTest/1610390301/ > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > Test report artifacts from this job are available at: > http://files.apachegeode-ci.info/builds/apache-develop-main/1.14.0-build.0601/test-artifacts/1610390301/distributedtestfiles-OpenJDK11-1.14.0-build.0601.tgz -- This message was sent by Atlassian Jira (v8.3.4#803005)