-
Notifications
You must be signed in to change notification settings - Fork 190
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
fix: change int type to long #489
fix: change int type to long #489
Conversation
Signed-off-by: Dominik Szczepanczyk <[email protected]>
Signed-off-by: Dominik Szczepanczyk <[email protected]>
Signed-off-by: Dominik Szczepanczyk <[email protected]>
Signed-off-by: Dominik Szczepanczyk <[email protected]>
|
||
@Nullable | ||
private final String totalDataSetSize; | ||
|
||
@Nullable | ||
private final Integer totalDataSetSizeInBytes; | ||
private final Long totalDataSetSizeInBytes; |
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 don't see this field in the response from API in version 2.7.0
Seems like it was never produced by the server, even from very first version:
https://github.com/opensearch-project/OpenSearch/blob/1.0/server/src/main/java/org/opensearch/index/store/StoreStats.java
Should I remove it or mark it as @deprecated?
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.
Mark it as deprecated, will remove in the next major version.
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.
+1
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.
Done in: #497 :)
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.
Thanks! Make a separate PR for the deprecated field so we have a single link for that one.
* fix: change int type to long Signed-off-by: Dominik Szczepanczyk <[email protected]> * update CHANGELOG.md Signed-off-by: Dominik Szczepanczyk <[email protected]> * fix: change totalDataSetSizeInBytes to Long too Signed-off-by: Dominik Szczepanczyk <[email protected]> * fix: skip removing opensearch-observability index in AfterTest cleanup Signed-off-by: Dominik Szczepanczyk <[email protected]> --------- Signed-off-by: Dominik Szczepanczyk <[email protected]>
* fix: handle String error deserialization for ErrorCause object (#301) (#476) * fix: handle String error deserialization for ErrorCause object (#301) Signed-off-by: Dominik Szczepanczyk <[email protected]> * update CHANGELOG.md Signed-off-by: Dominik Szczepanczyk <[email protected]> --------- Signed-off-by: Dominik Szczepanczyk <[email protected]> * fix: change int type to long (#489) * fix: change int type to long Signed-off-by: Dominik Szczepanczyk <[email protected]> * update CHANGELOG.md Signed-off-by: Dominik Szczepanczyk <[email protected]> * fix: change totalDataSetSizeInBytes to Long too Signed-off-by: Dominik Szczepanczyk <[email protected]> * fix: skip removing opensearch-observability index in AfterTest cleanup Signed-off-by: Dominik Szczepanczyk <[email protected]> --------- Signed-off-by: Dominik Szczepanczyk <[email protected]> --------- Signed-off-by: Dominik Szczepanczyk <[email protected]>
Description
The server returns long instead of int:
https://github.com/opensearch-project/OpenSearch/blob/main/server/src/main/java/org/opensearch/index/store/StoreStats.java
Issues Resolved
#184
#490
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.