You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Dan Smith (JIRA)" <ji...@apache.org> on 2018/10/12 19:53:00 UTC

[jira] [Commented] (GEODE-5228) ServerLauncherRemoteFileIntegrationTest fails intermittently with IllegalStateException vf.gf.server.status is blank

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

Dan Smith commented on GEODE-5228:
----------------------------------

I changed the pollDelay for the await() calls in this test to zero as part of GEODE-5424, which seems to make this failure more likely.

It looks like this is a race in the status() method - it can read an empty file before it is written. If that happens, it fails with this error instead of retrying in the await().

> ServerLauncherRemoteFileIntegrationTest fails intermittently with IllegalStateException vf.gf.server.status is blank
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: GEODE-5228
>                 URL: https://issues.apache.org/jira/browse/GEODE-5228
>             Project: Geode
>          Issue Type: Bug
>          Components: management, tests
>            Reporter: Kirk Lund
>            Priority: Minor
>              Labels: ServerLauncher, ci, flaky, swat
>
> {noformat}
> java.lang.IllegalStateException: Status file '/tmp/build/ae3c03f4/built-geode/tmp/junit5775773082469887234/vf.gf.server.status' is blank
> 	at org.apache.geode.internal.process.FileProcessController.status(FileProcessController.java:152)
> 	at org.apache.geode.internal.process.FileProcessController.status(FileProcessController.java:89)
> 	at org.apache.geode.distributed.ServerLauncher.statusWithWorkingDirectory(ServerLauncher.java:1102)
> 	at org.apache.geode.distributed.ServerLauncher.status(ServerLauncher.java:1050)
> 	at org.apache.geode.distributed.ServerLauncherRemoteIntegrationTestCase.lambda$awaitStart$1(ServerLauncherRemoteIntegrationTestCase.java:198)
> 	at org.awaitility.core.AssertionCondition$1.eval(AssertionCondition.java:55)
> 	at org.awaitility.core.ConditionAwaiter$ConditionPoller.run(ConditionAwaiter.java:215)
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> 	at java.lang.Thread.run(Thread.java:748)
> {noformat}



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