-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Improved cat help description #14771
base: main
Are you sure you want to change the base?
Conversation
❌ Gradle check result for b66562a: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
The Gradle failure doesn't appear to be related to my change. |
Thanks for your contribution @landon-lengyel! Let me take care of the workflows. |
@@ -694,8 +694,8 @@ protected Table getTableWithHeader(final RestRequest request) { | |||
table.addCell("suggest.total", "sibling:pri;alias:suto,suggestTotal;default:false;text-align:right;desc:number of suggest ops"); | |||
table.addCell("pri.suggest.total", "default:false;text-align:right;desc:number of suggest ops"); | |||
|
|||
table.addCell("memory.total", "sibling:pri;alias:tm,memoryTotal;default:false;text-align:right;desc:total used memory"); | |||
table.addCell("pri.memory.total", "default:false;text-align:right;desc:total user memory"); | |||
table.addCell("memory.total", "sibling:pri;alias:tm,memoryTotal;default:false;text-align:right;desc:total used memory of primaries & replicas"); |
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.
@reta Does this seem accurate to you?
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.
@kotwanikunal I think the pri.*
prefix generally reflects primary, so it looks accurate but not complete, we have many other columns which probably have to be documented in a similar fashion, not only *memory*
@landon-lengyel You missed signing off on your commit. Can you please follow the process here to correct it? |
Okay I think I amended that correctly. |
server/src/main/java/org/opensearch/rest/action/cat/RestIndicesAction.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/rest/action/cat/RestIndicesAction.java
Outdated
Show resolved
Hide resolved
❌ Gradle check result for 782755c: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
❌ Gradle check result for 124c3fb: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
This PR is stalled because it has been open for 30 days with no activity. |
This PR is stalled because it has been open for 30 days with no activity. |
@landon-lengyel @sandeshkr419 @reta let's finish this? |
@landon-lengyel Did you get a chance to check out the comments? |
…sAction.java Co-authored-by: Andriy Redko <[email protected]> Signed-off-by: Landon Lengyel <[email protected]>
…sAction.java Co-authored-by: Andriy Redko <[email protected]> Signed-off-by: Landon Lengyel <[email protected]>
@sandeshkr419 LGTM. I approved the changes on this PR from @reta - thank you for adding those. Is there anything else I can do for this PR? |
Thanks @landon-lengyel , so if you look on any other column out there, most of them have
(and many others). So if we want to accurately reflect the Thank you |
DCO check needs fixing sadly |
@landon-lengyel Re-iterating on what I mentioned in my comment and what @reta also seconded in his comment, it only makes sense to fix the typo If required, a small line clarifying this on top of the help section might be a value addition instead of making this change at each row to keep the individual rows' description concise, and not at all for a single row (which brings up inconsistency). |
❌ Gradle check result for 149eb3d: Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Description
The _cat API's help returns (in part) the following:
Header | Description
memory.total | total used memory
pri.memory.total | total user memory
The word 'user' is almost certainly a typo. However, I also strongly suspect that this is total used memory for primary shards and that should be explained more clearly.
Related Issues
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.
Signed-off-by: Landon Lengyel [email protected]