Skip to content

Commit

Permalink
Merge branch '5.1.x' into 5.2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
ConfluentJenkins committed Jul 21, 2020
2 parents 0ee062c + d7bc835 commit 202d18d
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,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 202d18d

Please sign in to comment.