Skip to content
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

Add ability to provide a list as input for disk-usage-stats #1913

Merged
merged 7 commits into from
Mar 4, 2025

Conversation

gareth-ellis
Copy link
Member

We currently expect a comma separated list of indices, however its possible to provide a list, which then ends up crashing rally at the end of a race. Since the parameter is in plural, it makes sense to at least support providing a list. This checks that if the parameter is a list, and if so convert to comma separated

@gareth-ellis gareth-ellis requested review from pjbertels and a team February 7, 2025 16:15
Copy link
Contributor

@gbanasiak gbanasiak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, haven't seen this earlier.

There's another comma-separated string in telemetry: node-stats-include-indices-metrics in node-stats. It has a different behavior, exception is thrown when parameter is not a string. This happens on start, so that's less frustrating for a user. WDYT about aligning both to either support both formats (string and list) or throw a similar exception?

@gareth-ellis gareth-ellis requested a review from gbanasiak March 4, 2025 11:42
Copy link
Contributor

@gbanasiak gbanasiak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gareth-ellis gareth-ellis enabled auto-merge (squash) March 4, 2025 12:39
@gareth-ellis gareth-ellis merged commit 76aca76 into elastic:master Mar 4, 2025
15 checks passed
@gareth-ellis gareth-ellis deleted the disk-usage-stats branch March 4, 2025 14:01
@dpifke-elastic dpifke-elastic added the bug Something's wrong label Mar 28, 2025
@dpifke-elastic dpifke-elastic added this to the 2.12.0 milestone Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something's wrong
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants