Skip to content
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 integer overflow for remaining index stats #877

Merged
merged 2 commits into from
Feb 23, 2024

Conversation

VachaShah
Copy link
Collaborator

Description

Some values in index stats still have an int which can overflow as reported in #875. Fixing in this PR. A similar fix was done some time back for some stats: #489.

I also skimmed through other stats to verify that the variables related to bytes are converted to long.

Issues Resolved

Fixes #875

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.

reta
reta previously approved these changes Feb 23, 2024
Signed-off-by: Vacha Shah <vachshah@amazon.com>
Signed-off-by: Vacha Shah <vachshah@amazon.com>
@VachaShah
Copy link
Collaborator Author

@reta I added changelog and merged the latest changes from main.

@VachaShah VachaShah merged commit 0c88a6a into opensearch-project:main Feb 23, 2024
50 checks passed
@VachaShah VachaShah added the backport 2.x Backport to 2.x branch label Feb 23, 2024
opensearch-trigger-bot bot pushed a commit that referenced this pull request Feb 23, 2024
* Fix integer overflow for remaining index stats

Signed-off-by: Vacha Shah <vachshah@amazon.com>

* Adding changelog

Signed-off-by: Vacha Shah <vachshah@amazon.com>

---------

Signed-off-by: Vacha Shah <vachshah@amazon.com>
(cherry picked from commit 0c88a6a)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
VachaShah pushed a commit that referenced this pull request Feb 23, 2024
* Fix integer overflow for remaining index stats



* Adding changelog



---------


(cherry picked from commit 0c88a6a)

Signed-off-by: Vacha Shah <vachshah@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@BrendonFaleiro BrendonFaleiro mentioned this pull request Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Backport to 2.x branch
Projects
None yet
2 participants