-
Notifications
You must be signed in to change notification settings - Fork 183
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
[BUG] jakarta.json.stream.JsonParsingException when reading stats of an index which contains more than 2GB data #299
Comments
This is a good catch. @luontola would you be up for proposing a PR for the opensearch-java client? |
Also, if we fix this, would it potentially break any working code that relies on the int type in the created object? |
Duplicate of: #184 |
Closing as dup. |
@dblock I don't know why it is closed as a dupe or not. We are still having the same exact issue in 2.8.4 version. Please advise what to do in this case |
Looks like #877 fixed this, so 2.10. |
Describe the bug
org.opensearch.client.opensearch.indices.OpenSearchIndicesClient#stats
crashes withjakarta.json.stream.JsonParsingException
when trying to read the stats of an index with more than about 2GB data.To Reproduce
Steps to reproduce the behavior:
org.opensearch.client.opensearch.indices.OpenSearchIndicesClient#stats
to read the stats of that index.Expected behavior
The client returns the index stats without errors. All fields which relate to file sizes should use the
long
type instead ofint
. In addition toorg.opensearch.client.opensearch._types.StoreStats#sizeInBytes
there seem to be many other fields already in the same class with the same problem. The whole codebase should be reviewed to fix all instances of this bug.Version:
org.opensearch.client/opensearch-java "2.1.0"
org.opensearch.client/opensearch-rest-client "2.4.0"
The text was updated successfully, but these errors were encountered: