Skip to content

Commit

Permalink
Ensure tests.jvm.argline gets passed to CLI in legacy test clusters
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-vieira committed Dec 13, 2024
1 parent fad22d1 commit 7bf4c98
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -876,10 +876,8 @@ private void startElasticsearchProcess() {
// Don't inherit anything from the environment for as that would lack reproducibility
environment.clear();
environment.putAll(getESEnvironment());
if (cliJvmArgs.isEmpty() == false) {
String cliJvmArgsString = String.join(" ", cliJvmArgs);
environment.put("CLI_JAVA_OPTS", cliJvmArgsString);
}
String cliJvmArgsString = String.join(" ", cliJvmArgs);
environment.put("CLI_JAVA_OPTS", cliJvmArgsString + " " + System.getProperty("tests.jvm.argline", ""));

// Direct the stderr to the ES log file. This should capture any jvm problems to start.
// Stdout is discarded because ES duplicates the log file to stdout when run in the foreground.
Expand Down

0 comments on commit 7bf4c98

Please sign in to comment.