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

Kenneth Howe commented on GEODE-5590:
-------------------------------------

Digging in to the code from the stack trace above for 
{{AbstractLauncher.assertPortAvailable}}, we do 
{{server.setReuseAddress(true)}} for the port being tested. This should 
eliminate a lingering TIME_WAIT state on the socket causing the failure.

Member shutdown is done on an async thread 
({{MemberMBeanBridge.shutDownMember()}} which includes a 
{{Thread.sleep(1000)}}, so maybe we're just starting a server in the new test 
too fast foir the previous shutdown to complete?

> CI Failure: PutCommandWithJsonTest > putWithJsonString Fails intermittently 
> ----------------------------------------------------------------------------
>
>                 Key: GEODE-5590
>                 URL: https://issues.apache.org/jira/browse/GEODE-5590
>             Project: Geode
>          Issue Type: Bug
>            Reporter: Helena Bales
>            Priority: Major
>              Labels: swat
>
> {code:java}
> org.apache.geode.management.internal.cli.commands.PutCommandWithJsonTest > 
> putWithJsonString 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.GfshScript.awaitIfNecessary(GfshScript.java:117)
>         at 
> org.apache.geode.test.junit.rules.gfsh.GfshRule.execute(GfshRule.java:135)
>         at 
> org.apache.geode.test.junit.rules.gfsh.GfshScript.execute(GfshScript.java:106)
>         at 
> org.apache.geode.management.internal.cli.commands.PutCommandWithJsonTest.putWithJsonString(PutCommandWithJsonTest.java:55)
> {code}



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

Reply via email to