Skip to content

Commit

Permalink
Fix 'node-stats' telemetry device version checks
Browse files Browse the repository at this point in the history
  • Loading branch information
b-deam committed Jun 21, 2023
1 parent ec9e7fc commit 7323e81
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions esrally/telemetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -757,8 +757,9 @@ def __init__(self, telemetry_params, clients, metrics_store):

def on_benchmark_start(self):
default_client = self.clients["default"]
distribution_version = default_client.info()["version"]["number"]
if Version.from_string(distribution_version) < Version(major=7, minor=2, patch=0):
es_info = default_client.info()
es_version = es_info["version"].get("number", "7.2.0")
if Version.from_string(es_version) < Version(major=7, minor=2, patch=0):
console.warn(NodeStats.warning, logger=self.logger)

for cluster_name in self.specified_cluster_names:
Expand Down

0 comments on commit 7323e81

Please sign in to comment.