Skip to content

Commit

Permalink
Workaround for running old ES fixture on certain aarch64 systems
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-vieira committed Apr 8, 2021
1 parent 2676c47 commit b4c9271
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/reindex/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b4c9271

Please sign in to comment.