You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Robert Houghton (Jira)" <ji...@apache.org> on 2020/08/05 19:44:00 UTC

[jira] [Updated] (GEODE-6520) CI failure: StartServerCommandAcceptanceTest.startServerWithParametersWhenClusterConfigurationServiceIsEnabledShouldOverrideDefaults

     [ https://issues.apache.org/jira/browse/GEODE-6520?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Houghton updated GEODE-6520:
-----------------------------------
    Issue Type: Bug  (was: Test)

> CI failure: StartServerCommandAcceptanceTest.startServerWithParametersWhenClusterConfigurationServiceIsEnabledShouldOverrideDefaults
> ------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: GEODE-6520
>                 URL: https://issues.apache.org/jira/browse/GEODE-6520
>             Project: Geode
>          Issue Type: Bug
>          Components: gfsh, management
>            Reporter: Jens Deppe
>            Priority: Major
>
> This test is flaky - a failure can be seen in this run: https://concourse.apachegeode-ci.info/teams/main/pipelines/apache-develop-main/jobs/AcceptanceTestOpenJDK11/builds/484
> The offending bit of code is here:
> {code:java}
>     Integer serverPort = AvailablePortHelper.getRandomAvailableTCPPort();
>     File logFile = temporaryFolder.newFile(testName.getMethodName() + ".log");
>     String startServerCommand =
>         "start server --max-threads=50 --max-connections=200 --max-message-count=500 --message-time-to-live=120 --socket-buffer-size=8192 --server-port="
>             + serverPort + " --use-cluster-configuration=true --name=" + testName.getMethodName()
>             + " --J=-Dgemfire.log-file=" + logFile.getAbsolutePath();
>     GfshExecution startClusterExecution = GfshScript
>         .of("start locator --name=locator1 --connect=true --enable-cluster-configuration=true",
>             "configure pdx --read-serialized=true", startServerCommand)
>         .execute(gfshRule);
> {code}
> The problem is that a {{serverPort}} is retrieved but then only used **after** a locator is started. Sometimes the locator will end up using the 'free' port thus causing a conflict later on when the server starts.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)