Skip to content

Commit

Permalink
GEODE-10197: fix test for jdk17
Browse files Browse the repository at this point in the history
OutOfMemoryDUnitTest now only uses CMS on jdk less than 14. (apache#7595)
  • Loading branch information
dschneider-pivotal authored Apr 16, 2022
1 parent ab50100 commit d54083c
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

package org.apache.geode.redis;

import static org.apache.commons.lang3.JavaVersion.JAVA_13;
import static org.apache.commons.lang3.SystemUtils.isJavaVersionAtMost;
import static org.apache.geode.internal.AvailablePortHelper.getRandomAvailableTCPPorts;
import static org.apache.geode.management.internal.i18n.CliStrings.START_LOCATOR;
import static org.apache.geode.management.internal.i18n.CliStrings.START_LOCATOR__DIR;
Expand Down Expand Up @@ -143,8 +145,10 @@ private static void startServer(int redisPort) throws Exception {
.addOption(START_SERVER__INITIAL_HEAP, "125m")
.addOption(START_SERVER__MAXHEAP, "125m")
.addOption(START_SERVER__CRITICAL__HEAP__PERCENTAGE, "50")
.addOption(START_SERVER__J, "-XX:CMSInitiatingOccupancyFraction=45")
.addOption(START_SERVER__CLASSPATH, redisHome.getGeodeForRedisHome() + "/lib/*");
if (isJavaVersionAtMost(JAVA_13)) {
startServerCommand.addOption(START_SERVER__J, "-XX:CMSInitiatingOccupancyFraction=45");
}
gfsh.executeAndAssertThat(startServerCommand.getCommandString()).statusIsSuccess();
}

Expand Down

0 comments on commit d54083c

Please sign in to comment.