diff --git a/src/Elastic.Elasticsearch.Ephemeral/Tasks/IClusterComposeTask.cs b/src/Elastic.Elasticsearch.Ephemeral/Tasks/IClusterComposeTask.cs index d13e990..52c39c0 100644 --- a/src/Elastic.Elasticsearch.Ephemeral/Tasks/IClusterComposeTask.cs +++ b/src/Elastic.Elasticsearch.Ephemeral/Tasks/IClusterComposeTask.cs @@ -184,9 +184,13 @@ private static void ExecuteBinaryInternal(EphemeralClusterConfiguration config, if (errorOut.Any() && config.Version < "5.2.0") errorOut = errorOut.Where(e => !e.Line.Contains("No log4j2 configuration file found")).ToList(); - if (errorOut.Any(e => - !string.IsNullOrWhiteSpace(e.Line) && !e.Line.Contains("usage of JAVA_HOME is deprecated")) && - !binary.Contains("plugin") && !binary.Contains("cert")) + errorOut = errorOut + .Where(e => !string.IsNullOrWhiteSpace(e.Line)) + .Where(e => !e.Line.Contains("usage of JAVA_HOME is deprecated")) + .Where(e => !e.Line.Trim().StartsWith("warning:")) + .ToList(); + + if (errorOut.Any() && !binary.Contains("plugin") && !binary.Contains("cert")) throw new Exception( $"Received error out with exitCode ({result.ExitCode}) while executing {description}: {command}");