Skip to content

Commit b4c9271

Browse files
committed
Workaround for running old ES fixture on certain aarch64 systems
1 parent 2676c47 commit b4c9271

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/reindex/build.gradle

+4
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ if (Os.isFamily(Os.FAMILY_WINDOWS)) {
139139
env 'CLASSPATH', "${-> project.configurations.oldesFixture.asPath}"
140140
// old versions of Elasticsearch need JAVA_HOME
141141
env 'JAVA_HOME', jdks.legacy.javaHomePath
142+
// If we are running on certain arm systems we need to explicitly set the stack size to overcome JDK page size bug
143+
if (Architecture.current() == Architecture.AARCH64) {
144+
env 'ES_JAVA_OPTS', '-Xss512k'
145+
}
142146
args 'oldes.OldElasticsearch',
143147
baseDir,
144148
unzip.get().temporaryDir,

0 commit comments

Comments
 (0)