-
Notifications
You must be signed in to change notification settings - Fork 185
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
Integrated generated 'nodes' client APIs into the existing module #514
Integrated generated 'nodes' client APIs into the existing module #514
Conversation
Codecov Report
@@ Coverage Diff @@
## main #514 +/- ##
=======================================
Coverage 70.87% 70.87%
=======================================
Files 83 83
Lines 7790 7790
=======================================
Hits 5521 5521
Misses 2269 2269
|
a89c109
to
c69be17
Compare
5b9493a
to
747adfd
Compare
…suring alignment with the server and maintaining backward compatibility Signed-off-by: saimedhi <[email protected]>
2928a30
to
f9d4652
Compare
Signed-off-by: Sai Medhini Reddy Maryada <[email protected]>
Signed-off-by: Daniel (dB.) Doubrovkine <[email protected]>
@@ -79,7 +88,6 @@ class NodesClient(NamespacedClient): | |||
fields: Optional[Any] = ..., | |||
groups: Optional[Any] = ..., | |||
include_segment_file_sizes: Optional[Any] = ..., | |||
include_unloaded_segments: Optional[Any] = ..., |
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.
Are we breaking users by removing this?
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.
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.
We are not breaking users because the parameter is throwing error
{
"type": "illegal_argument_exception",
"reason": "request [/_nodes/stats] contains unrecognized parameter: [include_unloaded_segments]"
}
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.
Thats weird, the parameter is present in the server https://github.com/opensearch-project/OpenSearch/blob/main/server/src/main/java/org/opensearch/rest/action/cat/RestIndicesAction.java#L136
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.
I'm not certain, Vacha. I'm not very familiar with the OpenSearch server code. Do we need to examine this file or action instead of the above file?
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.
Ah you are absolutely right! For nodes stats it does not exist.
…suring alignment with the server and maintaining backward compatibility (opensearch-project#514) Signed-off-by: saimedhi <[email protected]> Signed-off-by: Sai Medhini Reddy Maryada <[email protected]> Signed-off-by: Daniel (dB.) Doubrovkine <[email protected]> Co-authored-by: Daniel (dB.) Doubrovkine <[email protected]> Signed-off-by: roma2023 <[email protected]>
Description
Integrated generated 'nodes' client APIs into the existing module, ensuring alignment with the server and maintaining backward compatibility
Issues Resolved
Related to #477
Testing the "include_unloaded_segments" parameter in the "stats" API resulted in an error indicating that the parameter is unrecognized (Implies generated "stats" API is correct)
get https://localhost:9200/_nodes/stats?include_unloaded_segments=true
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "request [/_nodes/stats] contains unrecognized parameter: [include_unloaded_segments]"
}
],
"type": "illegal_argument_exception",
"reason": "request [/_nodes/stats] contains unrecognized parameter: [include_unloaded_segments]"
},
"status": 400
}
Before giving your approval, kindly double-check.
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.