-
Notifications
You must be signed in to change notification settings - Fork 313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow compare to continue for missing disk usage stats #1482
Conversation
esrally/reporter.py
Outdated
prev = for_idx.get(field, 0) | ||
if prev < total: | ||
for_idx[field] = total | ||
if baseline_stats.disk_usage_total: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we only perform this work at all if both have disk_usage_total
? so instead of these changes do (in line 415)
if baseline_stats.disk_usage_total and contender_stats.disk_usage_total:
metrics_table.extend(self._report_disk_usage_stats_per_field(baseline_stats, contender_stats))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That makes sense. Can we issue a warning about it? Something on the console?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we only perform this work at all if both have
disk_usage_total
? so instead of these changes do (in line 415)
I'm good with this since there can be no comparison if either element contains non-existent objects. I'll give it a try to ensure it does what we want.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That makes sense. Can we issue a warning about it? Something on the console?
I was ready to add a warning until I thought it would add noise when running comparisons against metrics generated with older Rally versions and disk_usage_total=[]
for later versions. I'm interested in your thoughts.
What do you think instead about setting <x>.disk_usage_total=[]
when <x>.disk_usage_total=None
? This way we'll show disk usage metrics if they exist for one of the subjects, and not leave anything out.
…aseline or contender
Either way is fine by me. I think if we are going to skip them all we
should print a warning if one is empty. But I don't know the exact
mechanisms here. Sorry!
…On Wed, May 11, 2022, 6:07 PM Jason Bryan ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In esrally/reporter.py
<#1482 (comment)>:
> @@ -648,22 +648,23 @@ def _report_ingest_pipeline_failed(self, baseline_stats, contender_stats):
def _report_disk_usage_stats_per_field(self, baseline_stats, contender_stats):
best = {}
- for index, total, field in total_disk_usage_per_field(baseline_stats):
- best.setdefault(index, {})[field] = total
- for index, total, field in total_disk_usage_per_field(contender_stats):
- for_idx = best.setdefault(index, {})
- prev = for_idx.get(field, 0)
- if prev < total:
- for_idx[field] = total
+ if baseline_stats.disk_usage_total:
That makes sense. Can we issue a warning about it? Something on the
console?
I was ready to add a warning until I thought it would add noise when
running comparisons against metrics generated with older Rally versions and
disk_usage_total=[] for later versions. I'm interested in your thoughts.
What do you think instead about setting <x>.disk_usage_total=[] when
<x>.disk_usage_total=None? This way we'll show disk usage metrics if they
exist for one of the subjects, and not leave anything out.
—
Reply to this email directly, view it on GitHub
<#1482 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABUXIVFOO3UBROZYYHFJDLVJQVQPANCNFSM5VJLSO2Q>
.
You are receiving this because your review was requested.Message ID:
***@***.***>
|
I don't think a warning is appropriate. currently when we run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This commit fixes an issue introduced by the one with the beaker when running
esrally compare
where disk usage stats are not present for prior benchmarks.rally.log