geode-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kirk Lund (JIRA)" <>
Subject [jira] [Commented] (GEODE-530) CI Failure: LocatorLauncherRemoteJUnitTest.testStartDeletesStaleControlFiles
Date Thu, 05 Nov 2015 20:43:27 GMT


Kirk Lund commented on GEODE-530:

Another possible source of the failure is if the Locator attempts to use a port that is already

AbstractLocatorLauncherJUnitTestCase.setUpLocatorLauncherTest() determines the port to use:
  public final void setUpLocatorLauncherTest() throws Exception {
    final int port = AvailablePortHelper.getRandomAvailableTCPPort();
    System.setProperty(DistributionLocator.TEST_OVERRIDE_DEFAULT_PORT_PROPERTY, String.valueOf(port));
    this.locatorPort = port;

Any test using AvailablePort or AvailablePortHelper has a race condition in which another
process on the OS might use that port after setup but before the test method actually uses
that port.

Someone might want to investigate using zero instead so that the creation of socket server
always succeeds in finding a random port at a much lower level.

> CI Failure: LocatorLauncherRemoteJUnitTest.testStartDeletesStaleControlFiles
> ----------------------------------------------------------------------------
>                 Key: GEODE-530
>                 URL:
>             Project: Geode
>          Issue Type: Bug
>            Reporter: Ashvin
>              Labels: CI
> Failure observed on af3199e45a4395521906e5059b435c7bf4176121
> {noformat}
> java.lang.AssertionError: waiting for process to start: Locator in /tmp/junit2815929780493925836
on null is currently not responding.
> 	at
> 	at org.junit.Assert.assertTrue(
> 	at com.gemstone.gemfire.distributed.AbstractLauncherJUnitTestCase.assertEventuallyTrue(
> 	at com.gemstone.gemfire.distributed.AbstractLocatorLauncherJUnitTestCase.waitForLocatorToStart(
> 	at com.gemstone.gemfire.distributed.AbstractLocatorLauncherJUnitTestCase.waitForLocatorToStart(
> 	at com.gemstone.gemfire.distributed.LocatorLauncherRemoteJUnitTest.testStartDeletesStaleControlFiles(
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> {noformat}

This message was sent by Atlassian JIRA

View raw message