Skip to content

Use long rather than int for sizeRw and sizeRootFs - #2230

Merged
eddumelendez merged 1 commit into
docker-java:mainfrom
LarsSven:ls/int-to-long
Dec 19, 2023
Merged

eddumelendez merged 1 commit into
docker-java:mainfrom
LarsSven:ls/int-to-long

Conversation

@LarsSven

Copy link
Copy Markdown
Contributor

Currently docker-java uses an integer to represent SizeRw and SizeRootFs. This value however represents the an amount of bytes, meaning the integer could easily overflow.

This MR changes these two fields to longs.

Note that Container.java also implements a SizeRw and SizeRootFs fields. Here, the fields are represented as longs rather than integers, so it would make sense that the inspect container command also returns longs.

@eddumelendez eddumelendez added this to the next milestone Dec 19, 2023
@eddumelendez
eddumelendez merged commit 84d7750 into docker-java:main Dec 19, 2023
@eddumelendez

Copy link
Copy Markdown
Member

Thanks for your contribution, @LarsSven !

@ondh

ondh commented Jan 22, 2024

Copy link
Copy Markdown

Thanks guys.When can it be released?

@eddumelendez

Copy link
Copy Markdown
Member

I'm planning to revert this one due to the breaking changes. See #2279

eddumelendez added a commit that referenced this pull request Feb 2, 2024
* Enable japicmp in docker-java-api

* Revert "Use long rather than int for sizeRw and sizeRootFs (#2230)"

This reverts commit 84d7750.
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.

3 participants