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

Jens Deppe commented on GEODE-4374:
-----------------------------------

The test fails with the following in the log:
{noformat}
Command result for <connect --use-http=true 
--url=http://localhost:29970/geode-mgmt/v1>: 
    _________________________     __
   / _____/ ______/ ______/ /____/ /
  / /  __/ /___  /_____  / _____  / 
 / /__/ / ____/  _____/ / /    / /  
/______/_/      /______/_/    /_/    1.5.0-SNAPSHOT

Monitor and Manage Apache Geode
Successfully connected to: GemFire Manager HTTP service @ 
org.apache.geode.management.internal.web.http.support.HttpRequester@7efaad5a


[vm1] [info 2018/01/24 18:56:06.641 PST <Function Execution Processor1> tid=86] 
Received GFSH shutdown. Shutting down member 
192.168.1.15(Server1:76187)<v1>:32771

[vm1] [info 2018/01/24 18:56:06.666 PST <pool-3-thread-1> tid=87] 
GemFireCache[id = 1426004240; isClosing = true; isShutDownAll = false; created 
= Wed Jan 24 18:56:05 PST 2018; server = false; copyOnRead = false; lockLease = 
120; lockTimeout = 60]: Now closing.

org.springframework.web.client.ResourceAccessException: I/O error on POST 
request for "http://localhost:29970/geode-mgmt/v1/management/commands": 
Unexpected end of file from server; nested exception is 
java.net.SocketException: Unexpected end of file from server
        at 
org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:673)
        at 
org.springframework.web.client.RestTemplate.execute(RestTemplate.java:635)
        at 
org.apache.geode.management.internal.web.http.support.HttpRequester.executeWithResponseExtractor(HttpRequester.java:149)
        at 
org.apache.geode.management.internal.web.shell.HttpOperationInvoker.processCommand(HttpOperationInvoker.java:435)
        at 
org.apache.geode.management.internal.cli.shell.GfshExecutionStrategy.executeOnRemote(GfshExecutionStrategy.java:187)
        at 
org.apache.geode.management.internal.cli.shell.GfshExecutionStrategy.execute(GfshExecutionStrategy.java:90)
        at 
org.springframework.shell.core.AbstractShell.executeCommand(AbstractShell.java:134)
        at 
org.springframework.shell.core.AbstractShell.executeScriptLine(AbstractShell.java:74)
        at 
org.apache.geode.management.internal.cli.shell.Gfsh.executeScriptLine(Gfsh.java:589)
        at 
org.apache.geode.management.internal.cli.HeadlessGfsh.executeCommand(HeadlessGfsh.java:101)
        at 
org.apache.geode.test.junit.rules.GfshCommandRule.executeCommand(GfshCommandRule.java:222)
        at 
org.apache.geode.test.junit.rules.GfshCommandRule.executeAndAssertThat(GfshCommandRule.java:248)
        at 
org.apache.geode.management.internal.cli.commands.ShutdownCommandDUnitTest.testShutdownAll(ShutdownCommandDUnitTest.java:106)
        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:498)
        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.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
        at 
org.apache.geode.test.junit.rules.DescribedExternalResource$1.evaluate(DescribedExternalResource.java:37)
        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.runners.ParentRunner.run(ParentRunner.java:363)
        at org.junit.runners.Suite.runChild(Suite.java:128)
        at org.junit.runners.Suite.runChild(Suite.java:27)
        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.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:47)
        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.net.SocketException: Unexpected end of file from server
Command result for <shutdown --include-locators=true>: 
Could not read command response. Error occurred while executing "shutdown 
--include-locators=true" on manager.


        at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:851)
        at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:678)
        at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1587)
        at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492)
        at 
java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
        at 
org.springframework.http.client.SimpleClientHttpResponse.getRawStatusCode(SimpleClientHttpResponse.java:52)
        at 
org.springframework.http.client.AbstractClientHttpResponse.getStatusCode(AbstractClientHttpResponse.java:33)
        at 
org.springframework.web.client.DefaultResponseErrorHandler.getHttpStatusCode(DefaultResponseErrorHandler.java:106)
        at 
org.springframework.web.client.DefaultResponseErrorHandler.hasError(DefaultResponseErrorHandler.java:51)
        at 
org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:695)
        at 
org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:660)
        ... 46 more
org.springframework.web.client.ResourceAccessException: I/O error on POST 
request for "http://localhost:29970/geode-mgmt/v1/management/commands": 
Unexpected end of file from server; nested exception is 
java.net.SocketException: Unexpected end of file from server
        at 
org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:673)
        at 
org.springframework.web.client.RestTemplate.execute(RestTemplate.java:635)
        at 
org.apache.geode.management.internal.web.http.support.HttpRequester.executeWithResponseExtractor(HttpRequester.java:149)
        at 
org.apache.geode.management.internal.web.shell.HttpOperationInvoker.processCommand(HttpOperationInvoker.java:435)
        at 
org.apache.geode.management.internal.cli.shell.GfshExecutionStrategy.executeOnRemote(GfshExecutionStrategy.java:187)
        at 
org.apache.geode.management.internal.cli.shell.GfshExecutionStrategy.execute(GfshExecutionStrategy.java:90)
        at 
org.springframework.shell.core.AbstractShell.executeCommand(AbstractShell.java:134)
        at 
org.springframework.shell.core.AbstractShell.executeScriptLine(AbstractShell.java:74)
        at 
org.apache.geode.management.internal.cli.shell.Gfsh.executeScriptLine(Gfsh.java:589)
        at 
org.apache.geode.management.internal.cli.HeadlessGfsh.executeCommand(HeadlessGfsh.java:101)
        at 
org.apache.geode.test.junit.rules.GfshCommandRule.executeCommand(GfshCommandRule.java:222)
        at 
org.apache.geode.test.junit.rules.GfshCommandRule.executeAndAssertThat(GfshCommandRule.java:248)
        at 
org.apache.geode.management.internal.cli.commands.ShutdownCommandDUnitTest.testShutdownAll(ShutdownCommandDUnitTest.java:106)
        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:498)
        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.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
        at 
org.apache.geode.test.junit.rules.DescribedExternalResource$1.evaluate(DescribedExternalResource.java:37)
        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.runners.ParentRunner.run(ParentRunner.java:363)
        at org.junit.runners.Suite.runChild(Suite.java:128)
        at org.junit.runners.Suite.runChild(Suite.java:27)
        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.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:47)
        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.net.SocketException: Unexpected end of file from server
        at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:851)
        at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:678)
        at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1587)
        at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492)
        at 
java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
        at 
org.springframework.http.client.SimpleClientHttpResponse.getRawStatusCode(SimpleClientHttpResponse.java:52)
        at 
org.springframework.http.client.AbstractClientHttpResponse.getStatusCode(AbstractClientHttpResponse.java:33)
        at 
org.springframework.web.client.DefaultResponseErrorHandler.getHttpStatusCode(DefaultResponseErrorHandler.java:106)
        at 
org.springframework.web.client.DefaultResponseErrorHandler.hasError(DefaultResponseErrorHandler.java:51)
        at 
org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:695)
        at 
org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:660)
        ... 46 more
{noformat}

> ShutdownCommandOverHttpDUnitTest appears to be flaky
> ----------------------------------------------------
>
>                 Key: GEODE-4374
>                 URL: https://issues.apache.org/jira/browse/GEODE-4374
>             Project: Geode
>          Issue Type: Bug
>          Components: gfsh
>            Reporter: Jens Deppe
>            Priority: Major
>
> After having some successful runs in precheckin, while adding this test, it 
> now appears to be intermittently failing. I'm marking it as flaky for now.



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

Reply via email to