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

[25.0 backport] run: fix GetList return empty issue for throttledevice #5341

Merged
merged 1 commit into from
Aug 12, 2024

Conversation

thaJeztah
Copy link
Member

Test "--device-read-bps" "--device-write-bps" will fail. The root cause is that GetList helper return empty as its local variable initialized to zero size.

This patch fix it by setting the related slice size to non-zero.

(cherry picked from commit 73e78a5)

- What I did

- How I did it

- How to verify it

- Description for the changelog

Fix `--device-read-bps` and `--device-write-bps` options not taking effect.

- A picture of a cute animal (not mandatory but encouraged)

Test "--device-read-bps" "--device-write-bps" will fail. The root
cause is that GetList helper return empty as its local variable
initialized to zero size.

This patch fix it by setting the related slice size to non-zero.

Signed-off-by: Jianyong Wu <[email protected]>
Fixes: docker#5321
(cherry picked from commit 73e78a5)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 61.36%. Comparing base (6fb9a5b) to head (a73610d).
Report is 3 commits behind head on 25.0.

Additional details and impacted files
@@           Coverage Diff           @@
##             25.0    #5341   +/-   ##
=======================================
  Coverage   61.36%   61.36%           
=======================================
  Files         290      290           
  Lines       20098    20098           
=======================================
  Hits        12334    12334           
  Misses       6871     6871           
  Partials      893      893           

@vvoland vvoland merged commit 32ac720 into docker:25.0 Aug 12, 2024
99 of 104 checks passed
@thaJeztah thaJeztah deleted the 25.0_backport_fix_bps_limit branch August 12, 2024 10:27
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.

4 participants