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

Dale Emery commented on GEODE-5817:
-----------------------------------

A different test ({{StatusServerExitCodeAcceptanceTest. 
statusCommandWithIncorrectPidShouldFail}} gave the same failure in CI 
http://files.apachegeode-ci.info/builds/apache-develop-main/1.8.0-build.86/test-results/acceptanceTest/1541116584/index.html:
 
{noformat}
org.junit.ComparisonFailure: expected:<[tru]e> but was:<[fals]e> at 
jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 
at 
jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
 at 
jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
 at 
org.apache.geode.test.junit.rules.gfsh.GfshExecution.awaitTermination(GfshExecution.java:123)
 at org.apache.geode.test.junit.rules.gfsh.GfshRule.execute(GfshRule.java:125) 
at 
org.apache.geode.test.junit.rules.gfsh.GfshScript.execute(GfshScript.java:133) 
at 
org.apache.geode.management.internal.cli.shell.StatusServerExitCodeAcceptanceTest.statusCommandWithIncorrectPidShouldFail(StatusServerExitCodeAcceptanceTest.java:99)
 at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at 
jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 at 
jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:566) 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.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.rules.ExternalResource$1.evaluate(ExternalResource.java:48) at 
org.junit.rules.RunRules.evaluate(RunRules.java:20) at 
org.junit.runners.ParentRunner.run(ParentRunner.java:363) at 
org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.runTestClass(JUnitTestClassExecutor.java:106)
 at 
org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:58)
 at 
org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:38)
 at 
org.gradle.api.internal.tasks.testing.junit.AbstractJUnitTestClassProcessor.processTestClass(AbstractJUnitTestClassProcessor.java:66)
 at 
org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:51)
 at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at 
jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 at 
jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:566) at 
org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
 at 
org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
 at 
org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32)
 at 
org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
 at com.sun.proxy.$Proxy2.processTestClass(Unknown Source) at 
org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:117)
 at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at 
jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 at 
jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:566) at 
org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
 at 
org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
 at 
org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:155)
 at 
org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:137)
 at 
org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:404)
 at 
org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
 at 
org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
 at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) 
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) 
at 
org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
 at java.lang.Thread.run(Thread.java:834)
{noformat}
 

> Acceptance test fails with org.junit.ComparisonFailure: expected:<[0]> but 
> was:<[1]>
> ------------------------------------------------------------------------------------
>
>                 Key: GEODE-5817
>                 URL: https://issues.apache.org/jira/browse/GEODE-5817
>             Project: Geode
>          Issue Type: Bug
>            Reporter: Brian Rowe
>            Assignee: Brian Rowe
>            Priority: Major
>              Labels: swat
>             Fix For: 1.8.0
>
>
> This appears to be the same issue as GEODE-5601, however, this is still 
> occurring even when the acceptanceTests are being run serially (or at least, 
> run with the fix for 5601).
> Example failures:
> from 
> https://concourse.apachegeode-ci.info/teams/main/pipelines/develop/jobs/AcceptanceTest/builds/47
> {noformat}org.apache.geode.management.internal.cli.commands.StopServerAcceptanceTest
>  > canStopServerByNameWhenConnectedOverHttp FAILED
>     org.junit.ComparisonFailure: expected:<[0]> but was:<[1]>
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
> Method)
>         at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>         at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>         at 
> org.apache.geode.test.junit.rules.gfsh.GfshExecution.awaitTermination(GfshExecution.java:124)
>         at 
> org.apache.geode.test.junit.rules.gfsh.GfshRule.execute(GfshRule.java:125)
>         at 
> org.apache.geode.test.junit.rules.gfsh.GfshRule.execute(GfshRule.java:112)
>         at 
> org.apache.geode.management.internal.cli.commands.StopServerAcceptanceTest.startCluster(StopServerAcceptanceTest.java:32){noformat}
> from 
> https://concourse.apachegeode-ci.info/teams/main/pipelines/develop/jobs/AcceptanceTest/builds/53
> {noformat}org.apache.geode.management.internal.cli.shell.StatusServerExitCodeAcceptanceTest
>  > classMethod FAILED
>     org.junit.ComparisonFailure: expected:<[0]> but was:<[1]>
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
> Method)
>         at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>         at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>         at 
> org.apache.geode.test.junit.rules.gfsh.GfshExecution.awaitTermination(GfshExecution.java:124)
>         at 
> org.apache.geode.test.junit.rules.gfsh.GfshRule.execute(GfshRule.java:125)
>         at 
> org.apache.geode.test.junit.rules.gfsh.GfshScript.execute(GfshScript.java:133)
>         at 
> org.apache.geode.management.internal.cli.shell.StatusServerExitCodeAcceptanceTest.classSetup(StatusServerExitCodeAcceptanceTest.java:66){noformat}
> Looking at the logs for these failures, we see the following in standard 
> error:
> {noformat}
> The Cache Server process terminated unexpectedly with exit status 1. Please 
> refer to the log file in 
> /tmp/junit5496177071859309076/member-controller/server-lock-better-iota for 
> full details.
> Exception in thread "main" java.lang.RuntimeException: An IO error occurred 
> while starting a Server in 
> /tmp/junit5496177071859309076/member-controller/server-lock-better-iota on 
> develop-acceptancetest-53.c.apachegeode-ci.internal[40404]: Network is 
> unreachable; port (40404) is not available on localhost.
>       at 
> org.apache.geode.distributed.ServerLauncher.start(ServerLauncher.java:816)
>       at 
> org.apache.geode.distributed.ServerLauncher.run(ServerLauncher.java:704)
>       at 
> org.apache.geode.distributed.ServerLauncher.main(ServerLauncher.java:224)
> Caused by: java.net.BindException: Network is unreachable; port (40404) is 
> not available on localhost.
>       at 
> org.apache.geode.distributed.AbstractLauncher.assertPortAvailable(AbstractLauncher.java:129)
>       at 
> org.apache.geode.distributed.ServerLauncher.start(ServerLauncher.java:761)
>       ... 2 more
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to