Skip to content

Commit

Permalink
Merge branch '5.4.x' into 5.5.x
Browse files Browse the repository at this point in the history
  • Loading branch information
ConfluentJenkins committed Jul 21, 2020
2 parents f6772d3 + 9c2e8dc commit 6e9b857
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,11 @@ private Version getServerVersion() throws IOException {
LOG.warn("Couldn't get Elasticsearch version (result is null); assuming {}", defaultVersion);
return defaultVersion;
}
if (!result.has("nodes")) {
LOG.warn("Couldn't get Elasticsearch version from result {} (result has no nodes). "
+ "Assuming {}.", result, defaultVersion);
return defaultVersion;
}

checkForError(result);

Expand Down

0 comments on commit 6e9b857

Please sign in to comment.