[
https://issues.apache.org/jira/browse/GEODE-6646?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16816695#comment-16816695
]
Shelley Lynn Hughes-Godfrey commented on GEODE-6646:
----------------------------------------------------
In this test, we start a locator and 2 servers (server-1 and server-2).
Then we forcefully disconnect server-2 and the locator before waiting for the
locator to reconnect + start server-3.
We must also expect server2 to reconnect; but it looks like the locator,
server-2 and server-3 form a new DS (without server-1).
{noformat}
@Test
public void serverRestartsAfterLocatorReconnects() throws Exception {
IgnoredException.addIgnoredException("org.apache.geode.ForcedDisconnectException:
for testing");
IgnoredException.addIgnoredException("cluster configuration service not
available");
IgnoredException.addIgnoredException("This thread has been stalled");
IgnoredException
.addIgnoredException("member unexpectedly shut down shared, unordered
connection");
IgnoredException.addIgnoredException("Connection refused");
MemberVM locator0 = rule.startLocatorVM(0);
rule.startServerVM(1, locator0.getPort());
MemberVM server2 = rule.startServerVM(2, locator0.getPort());
addDisconnectListener(locator0);
server2.forceDisconnect();
locator0.forceDisconnect();
waitForLocatorToReconnect(locator0);
rule.startServerVM(3, locator0.getPort());
gfsh.connectAndVerify(locator0);
await()
.untilAsserted(() -> gfsh.executeAndAssertThat("list
members").statusIsSuccess()
.tableHasColumnOnlyWithValues("Name", "locator-0", "server-1",
"server-2", "server-3"));
}
{noformat}
> CI:
> org.apache.geode.management.internal.configuration.ClusterConfigLocatorRestartDUnitTest
> > serverRestartsAfterLocatorReconnects FAILED
> -----------------------------------------------------------------------------------------------------------------------------------------
>
> Key: GEODE-6646
> URL: https://issues.apache.org/jira/browse/GEODE-6646
> Project: Geode
> Issue Type: Bug
> Components: gfsh, membership
> Affects Versions: 1.10.0
> Reporter: Shelley Lynn Hughes-Godfrey
> Priority: Major
> Labels: CI
>
> https://concourse.apachegeode-ci.info/teams/main/pipelines/apache-develop-main/jobs/DistributedTestOpenJDK8/builds/617
> {noformat}
> org.apache.geode.management.internal.configuration.ClusterConfigLocatorRestartDUnitTest
> > serverRestartsAfterLocatorReconnects FAILED
> org.awaitility.core.ConditionTimeoutException: Assertion condition
> defined as a lambda expression in
> org.apache.geode.management.internal.configuration.ClusterConfigLocatorRestartDUnitTest
>
> Expecting:
> <["locator-0", "server-2", "server-3"]>
> to contain only:
> <["locator-0", "server-1", "server-2", "server-3"]>
> but could not find the following elements:
> <["server-1"]>
> within 300 seconds.
> at
> org.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:145)
> at
> org.awaitility.core.AssertionCondition.await(AssertionCondition.java:122)
> at
> org.awaitility.core.AssertionCondition.await(AssertionCondition.java:32)
> at
> org.awaitility.core.ConditionFactory.until(ConditionFactory.java:902)
> at
> org.awaitility.core.ConditionFactory.untilAsserted(ConditionFactory.java:723)
> at
> org.apache.geode.management.internal.configuration.ClusterConfigLocatorRestartDUnitTest.serverRestartsAfterLocatorReconnects(ClusterConfigLocatorRestartDUnitTest.java:81)
> Caused by:
> java.lang.AssertionError:
> Expecting:
> <["locator-0", "server-2", "server-3"]>
> to contain only:
> <["locator-0", "server-1", "server-2", "server-3"]>
> but could not find the following elements:
> <["server-1"]>
> at
> org.apache.geode.test.junit.assertions.CommandResultAssert.tableHasColumnOnlyWithValues(CommandResultAssert.java:308)
> at
> org.apache.geode.management.internal.configuration.ClusterConfigLocatorRestartDUnitTest.lambda$serverRestartsAfterLocatorReconnects$0(ClusterConfigLocatorRestartDUnitTest.java:82)
> {noformat}
> Artifacts available here:
> {noformat}
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-= Test Results URI
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> http://files.apachegeode-ci.info/builds/apache-develop-main/1.10.0-SNAPSHOT.0177/test-results/distributedTest/1555101232/
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Test report artifacts from this job are available at:
> http://files.apachegeode-ci.info/builds/apache-develop-main/1.10.0-SNAPSHOT.0177/test-artifacts/1555101232/distributedtestfiles-OpenJDK8-1.10.0-SNAPSHOT.0177.tgz
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)