Skip to content

Commit

Permalink
Skip metrics that are missing in either contender or baseline (#1803)
Browse files Browse the repository at this point in the history
* Skip metrics that are missing in either contender or baseline

* Remove warning
  • Loading branch information
gareth-ellis authored Nov 15, 2023
1 parent 9d30171 commit 20a4427
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions esrally/reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -668,9 +668,12 @@ def _report_disk_usage_stats_per_field(self, baseline_stats, contender_stats):
lines = []
for index, _total, field in totals:
for stat in disk_usage_fields(baseline_stats):
baseline_value = collated_baseline[index].get(field, {}).get(stat, 0)
contender_value = collated_contender[index].get(field, {}).get(stat, 0)
if baseline_value == 0 and contender_value == 0:
if index in collated_baseline and index in collated_contender:
baseline_value = collated_baseline[index].get(field, {}).get(stat, 0)
contender_value = collated_contender[index].get(field, {}).get(stat, 0)
if baseline_value == 0 and contender_value == 0:
continue
else:
continue
unit = convert.bytes_to_human_unit(min(baseline_value, contender_value))
lines.append(
Expand Down

0 comments on commit 20a4427

Please sign in to comment.