From b4c92716b762918ad7796818caf13bb9aacd5dce Mon Sep 17 00:00:00 2001 From: Mark Vieira Date: Tue, 30 Mar 2021 16:37:31 -0700 Subject: [PATCH] Workaround for running old ES fixture on certain aarch64 systems --- modules/reindex/build.gradle | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/reindex/build.gradle b/modules/reindex/build.gradle index 8a002b11022f3..490156e037154 100644 --- a/modules/reindex/build.gradle +++ b/modules/reindex/build.gradle @@ -139,6 +139,10 @@ if (Os.isFamily(Os.FAMILY_WINDOWS)) { env 'CLASSPATH', "${-> project.configurations.oldesFixture.asPath}" // old versions of Elasticsearch need JAVA_HOME env 'JAVA_HOME', jdks.legacy.javaHomePath + // If we are running on certain arm systems we need to explicitly set the stack size to overcome JDK page size bug + if (Architecture.current() == Architecture.AARCH64) { + env 'ES_JAVA_OPTS', '-Xss512k' + } args 'oldes.OldElasticsearch', baseDir, unzip.get().temporaryDir,