geode-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kirk Lund (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GEODE-1930) JMX DistributedTests are in need of overhauling
Date Mon, 15 May 2017 18:34:04 GMT

    [ https://issues.apache.org/jira/browse/GEODE-1930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16011070#comment-16011070
] 

Kirk Lund commented on GEODE-1930:
----------------------------------

RegionManagementDUnitTest has multiple flaky tests and is failing intermittently. In particular
testRegionAggregate and testLruStats.
{noformat}
org.apache.geode.test.dunit.RMIException: While invoking org.apache.geode.test.dunit.NamedRunnable.run
in VM 0 running on Host 10.118.33.232 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.verifySystemNotifications(RegionManagementDUnitTest.java:617)
	at org.apache.geode.management.RegionManagementDUnitTest.testRegionAggregate(RegionManagementDUnitTest.java:259)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
	at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
	at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:51)
	at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
Caused by: java.lang.AssertionError: 
Expected size:<5> but was:<6> in:
<[javax.management.Notification[source=10.118.33.232(62116)<v2>-32771][type=gemfire.distributedsystem.cache.region.created][message=Region
Created With Name /MANAGEMENT_TEST_REGION],
    javax.management.Notification[source=10.118.33.232(62115)<v1>-32770][type=gemfire.distributedsystem.cache.region.created][message=Region
Created With Name /MANAGEMENT_TEST_REGION],
    javax.management.Notification[source=10.118.33.232(62116)<v2>-32771][type=gemfire.distributedsystem.cache.region.closed][message=Region
Destroyed/Closed With Name /MANAGEMENT_TEST_REGION],
    javax.management.Notification[source=10.118.33.232(62117)<v3>-32772][type=gemfire.distributedsystem.cache.region.closed][message=Region
Destroyed/Closed With Name /MANAGEMENT_TEST_REGION],
    javax.management.Notification[source=10.118.33.232(62118)<v4>-32773][type=gemfire.distributedsystem.cache.region.closed][message=Region
Destroyed/Closed With Name /MANAGEMENT_TEST_REGION],
    javax.management.Notification[source=10.118.33.232(62115)<v1>-32770][type=gemfire.distributedsystem.cache.region.closed][message=Region
Destroyed/Closed With Name /MANAGEMENT_TEST_REGION]]>
	at org.apache.geode.management.RegionManagementDUnitTest.lambda$verifySystemNotifications$3d0515b3$1(RegionManagementDUnitTest.java:619)
	at org.apache.geode.test.dunit.NamedRunnable.run(NamedRunnable.java:31)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at hydra.MethExecutor.executeObject(MethExecutor.java:245)
	at org.apache.geode.test.dunit.standalone.RemoteDUnitVM.executeMethodOnObject(RemoteDUnitVM.java:73)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:323)
	at sun.rmi.transport.Transport$1.run(Transport.java:200)
	at sun.rmi.transport.Transport$1.run(Transport.java:197)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
	at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$256(TCPTransport.java:683)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
{noformat}

> JMX DistributedTests are in need of overhauling
> -----------------------------------------------
>
>                 Key: GEODE-1930
>                 URL: https://issues.apache.org/jira/browse/GEODE-1930
>             Project: Geode
>          Issue Type: Improvement
>          Components: management
>            Reporter: Kirk Lund
>            Assignee: Kirk Lund
>
> In particular the DistributedTests that extend ManagementTestBase are really lacking.
Most of these have system outs instead of assertions, broken AsyncInvocations and a host of
other problems.
> Before working on anything in JMX or GFSH, these tests should be fixed up so that keeping
them green actually means something.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message