-
Notifications
You must be signed in to change notification settings - Fork 25.3k
Add includeDiskInfo
to toString()
#131358
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 includeDiskInfo
to toString()
#131358
Conversation
Adds the `includeDiskInfo` parameter to the `cluster/allocation/explain` `toString()` method, and adds tests.
Pinging @elastic/es-distributed-coordination (Team:Distributed Coordination) |
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 👍
You can add a Relates #127028
to the commit message for this. If you had used Closes #127028
for the main commit, it would have auto-closed the issue you're solving -- our docs show using that issue reference format, but don't explain what it does. The issue reference is nice, the rest is fanciness/laziness :)
+ "include_yes_decisions?=true,include_disk_info?=false"; | ||
String actual = clusterAllocationExplainRequest.toString(); | ||
|
||
assertTrue(actual.startsWith(expected)); |
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 this be an assertEquals? It looks like you've spelled out the entire string, not just the beginning?
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.
Fixed in c4a6439
Adds the
includeDiskInfo
parameter to thecluster/allocation/explain
toString()
method, and adds tests.Relates #127028