You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Barry Oglesby (JIRA)" <ji...@apache.org> on 2018/03/09 17:59:03 UTC
[jira] [Comment Edited] (GEODE-4815)
ParallelGatewaySenderOperation_2_DUnitTest
testParallelGatewaySender_SingleNode_UserPR_Destroy_SimultaneousPut_RecreateRegion
failed with suspect string
[ https://issues.apache.org/jira/browse/GEODE-4815?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16393290#comment-16393290 ]
Barry Oglesby edited comment on GEODE-4815 at 3/9/18 5:58 PM:
--------------------------------------------------------------
I made this change in {{createFirstPeerLocatorWANTestBase createFirstPeerLocator}}, and it reported 3 for the weight instead of 15:
{noformat}
public static Integer createFirstPeerLocator(int dsId) {
stopOldLocator();
WANTestBase test = new WANTestBase();
int port = AvailablePortHelper.getRandomAvailablePortForDUnitSite();
Properties props = test.getDistributedSystemProperties();
props.setProperty(MCAST_PORT, "0");
props.setProperty(DISTRIBUTED_SYSTEM_ID, "" + dsId);
props.setProperty(LOCATORS, "localhost[" + port + "]");
props.setProperty(START_LOCATOR,
"localhost[" + port + "],server=false,peer=true,hostname-for-clients=localhost");
System.setProperty(InternalLocator.FORCE_LOCATOR_DM_TYPE, "true");
try {
test.getSystem(props);
} finally {
System.getProperties().remove(InternalLocator.FORCE_LOCATOR_DM_TYPE);
}
return port;
}
{noformat}
was (Author: barry.oglesby):
I made this change in \{{createFirstPeerLocatorWANTestBase createFirstPeerLocator}}, and it reported 3 for the weight instead of 15:
{noformat}
public static Integer createFirstPeerLocator(int dsId) {
stopOldLocator();
WANTestBase test = new WANTestBase();
int port = AvailablePortHelper.getRandomAvailablePortForDUnitSite();
Properties props = test.getDistributedSystemProperties();
props.setProperty(MCAST_PORT, "0");
props.setProperty(DISTRIBUTED_SYSTEM_ID, "" + dsId);
props.setProperty(LOCATORS, "localhost[" + port + "]");
props.setProperty(START_LOCATOR,
"localhost[" + port + "],server=false,peer=true,hostname-for-clients=localhost");
System.setProperty(InternalLocator.FORCE_LOCATOR_DM_TYPE, "true");
try {
test.getSystem(props);
} finally {
System.getProperties().remove(InternalLocator.FORCE_LOCATOR_DM_TYPE);
}
return port;
}
{noformat}
> ParallelGatewaySenderOperation_2_DUnitTest testParallelGatewaySender_SingleNode_UserPR_Destroy_SimultaneousPut_RecreateRegion failed with suspect string
> --------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: GEODE-4815
> URL: https://issues.apache.org/jira/browse/GEODE-4815
> Project: Geode
> Issue Type: Improvement
> Components: tests, wan
> Reporter: Barry Oglesby
> Priority: Major
>
> ParallelGatewaySenderOperation_2_DUnitTest testParallelGatewaySender_SingleNode_UserPR_Destroy_SimultaneousPut_RecreateRegion failed with suspect string
> {noformat}
> Found suspect string in log4j at line 2444
> [fatal 2018/03/06 23:47:36.347 UTC <Geode Membership View Creator> tid=770] Possible loss of quorum due to the loss of 1 cache processes: [172.17.0.5(181)<ec><v0>:32771]
> at org.junit.Assert.fail(Assert.java:88)
> at org.apache.geode.test.dunit.standalone.DUnitLauncher.closeAndCheckForSuspects(DUnitLauncher.java:403)
> at org.apache.geode.test.dunit.internal.JUnit4DistributedTestCase.cleanupAllVms(JUnit4DistributedTestCase.java:561)
> at org.apache.geode.test.dunit.internal.JUnit4DistributedTestCase.doTearDownDistributedTestCase(JUnit4DistributedTestCase.java:508)
> at org.apache.geode.test.dunit.internal.JUnit4DistributedTestCase.tearDownDistributedTestCase(JUnit4DistributedTestCase.java:495)
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)