Skip to content

Change required_native_memory_bytes type to ByteSize #2740

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

Merged

Conversation

svalbuena
Copy link
Contributor

@svalbuena svalbuena commented Jul 26, 2024

Fixes #2739. The required_native_memory_bytes represents a value in bytes, an integer is too small to fit the range, and other bytes parameters in the spec are already using the ByteSyze type.

@svalbuena svalbuena changed the title Change required_native_memory_bytes to ByteSize #2739 Change required_native_memory_bytes to ByteSize Jul 26, 2024
@svalbuena svalbuena marked this pull request as ready for review July 26, 2024 03:25
@svalbuena svalbuena requested review from a team as code owners July 26, 2024 03:25
@svalbuena svalbuena changed the title Change required_native_memory_bytes to ByteSize Change required_native_memory_bytes type to ByteSize Jul 26, 2024
@maxhniebergall maxhniebergall self-assigned this Jul 26, 2024
@maxhniebergall maxhniebergall changed the base branch from main to svalbuena-issue-2739 July 26, 2024 19:08
@maxhniebergall maxhniebergall merged commit 6f1b9b9 into elastic:svalbuena-issue-2739 Jul 26, 2024
8 of 9 checks passed
github-actions bot pushed a commit that referenced this pull request Jul 26, 2024
* Change required_native_memory_bytes to ByteSize

* run make

---------

Co-authored-by: Max Hniebergall <[email protected]>
(cherry picked from commit 6f1b9b9)
@maxhniebergall
Copy link
Contributor

Hi @svalbuena, thanks for reporting and fixing this issue! Due to an issue with our CI, we need to have a PR from a branch in this repo to main. I've merged your PR into a local branch, and I will open a new PR to merge this new branch into main. Another PR has also been opened to backport this bugfix to the latest release.

@maxhniebergall
Copy link
Contributor

#2743
#2742

maxhniebergall pushed a commit that referenced this pull request Jul 26, 2024
* Change required_native_memory_bytes to ByteSize

* run make

---------

Co-authored-by: Max Hniebergall <[email protected]>
(cherry picked from commit 6f1b9b9)

Co-authored-by: Sergi Valbuena Garrido <[email protected]>
maxhniebergall added a commit that referenced this pull request Jul 26, 2024
* Change required_native_memory_bytes to ByteSize

* run make

---------

Co-authored-by: Sergi Valbuena Garrido <[email protected]>
@maxhniebergall
Copy link
Contributor

Your changes have been merged. Thanks for this contribution, and congrats on merging your first elastic PR!

@svalbuena
Copy link
Contributor Author

Thank you! Whats the process of updating the .net client repo with the new autogenerated code? @maxhniebergall

@maxhniebergall
Copy link
Contributor

@svalbuena, because we backported the code to v8.15.0, the new generated client code will be available with the v8.15.0 release which is happening very soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong type for required_native_memory_bytes (TrainedModelSizeStats class)
2 participants