You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by pr...@apache.org on 2019/01/08 17:22:10 UTC
[geode] branch develop updated: GEODE-6247: Ignore 2MB overuse
suspect string on JDK11. (#3053)
This is an automated email from the ASF dual-hosted git repository.
prhomberg pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git
The following commit(s) were added to refs/heads/develop by this push:
new ede2469 GEODE-6247: Ignore 2MB overuse suspect string on JDK11. (#3053)
ede2469 is described below
commit ede2469a7b4a15066b8acf872eb8d1272c76a035
Author: Patrick Rhomberg <pr...@pivotal.io>
AuthorDate: Tue Jan 8 09:21:58 2019 -0800
GEODE-6247: Ignore 2MB overuse suspect string on JDK11. (#3053)
---
.../java/org/apache/geode/test/dunit/rules/ClusterStartupRule.java | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/geode-dunit/src/main/java/org/apache/geode/test/dunit/rules/ClusterStartupRule.java b/geode-dunit/src/main/java/org/apache/geode/test/dunit/rules/ClusterStartupRule.java
index a8a5746..058cb88 100644
--- a/geode-dunit/src/main/java/org/apache/geode/test/dunit/rules/ClusterStartupRule.java
+++ b/geode-dunit/src/main/java/org/apache/geode/test/dunit/rules/ClusterStartupRule.java
@@ -15,6 +15,7 @@
*/
package org.apache.geode.test.dunit.rules;
+import static org.apache.commons.lang3.SystemUtils.isJavaVersionAtLeast;
import static org.apache.geode.distributed.ConfigurationProperties.GROUPS;
import static org.apache.geode.test.awaitility.GeodeAwaitility.await;
import static org.apache.geode.test.dunit.Host.getHost;
@@ -31,6 +32,7 @@ import java.util.Properties;
import java.util.stream.Collectors;
import org.apache.commons.io.FileUtils;
+import org.apache.commons.lang3.JavaVersion;
import org.junit.rules.ExternalResource;
import org.apache.geode.cache.client.ClientCache;
@@ -41,6 +43,7 @@ import org.apache.geode.distributed.internal.InternalLocator;
import org.apache.geode.internal.cache.InternalCache;
import org.apache.geode.test.dunit.DUnitEnv;
import org.apache.geode.test.dunit.Host;
+import org.apache.geode.test.dunit.IgnoredException;
import org.apache.geode.test.dunit.RMIException;
import org.apache.geode.test.dunit.SerializableConsumerIF;
import org.apache.geode.test.dunit.VM;
@@ -135,6 +138,10 @@ public class ClusterStartupRule extends ExternalResource implements Serializable
@Override
protected void before() throws Throwable {
+ if (isJavaVersionAtLeast(JavaVersion.JAVA_11)) {
+ // GEODE-6247: JDK 11 has an issue where native code is reporting committed is 2MB > max.
+ IgnoredException.addIgnoredException("committed = 538968064 should be < max = 536870912");
+ }
DUnitLauncher.launchIfNeeded();
for (int i = 0; i < vmCount; i++) {
Host.getHost(0).getVM(i);