← Winnitude! Search  ·  Reader Mode (2593 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 68 LINKS

Consider already existing images as successful pulls. by n-g · Pull Request #2335 · docker-java/docker-java

Repository navigation

Consider already existing images as successful pulls. - #2335


Merged
eddumelendez merged 4 commits into docker-java:main from n-g:main Jul 9, 2024
Merged

Consider already existing images as successful pulls. #2335 eddumelendez merged 4 commits into docker-java:main from n-g:main

Conversation

n-g commented Jun 6, 2024



Copy link Copy Markdown
Contributor

Fixes #2010

Status can be found in upstream moby:
https://github.com/moby/moby/blob/f3f20c3a862ff90c7e7b0ee07dabe2176ed0a170/plugin/fetch_linux.go#L224

Consider already existing images as successful pulls. fdaa193 n-g requested a review from a team as a code owner June 6, 2024 14:31 update golden file ee529c9

n-g commented Jun 11, 2024



Copy link Copy Markdown
Contributor

Author

cc @eddumelendez

To add more context, this issue is causing a race condition in Testcontainers:

Testcontainers skip Docker pulls if an image is already cached.
However, two concurrent pulls for the same image would see no cached image. During the actual pull, one will encounter an "Already exists" which is (incorrectly) considered a failed pull.

Merge branch 'main' into main b5df69c eddumelendez reviewed Jul 9, 2024
View reviewed changes
Apply suggestions from code review 2e41176 eddumelendez added the type/bug label Jul 9, 2024 eddumelendez added this to the next milestone Jul 9, 2024 eddumelendez merged commit b28b0dc into docker-java : main Jul 9, 2024

eddumelendez commented Jul 9, 2024



Copy link Copy Markdown
Member

Thanks for your contribution, @n-g !

wayneguow mentioned this pull request Jul 14, 2024 [SPARK-48894][TESTS] Upgrade docker-java to 3.4.0 apache/spark#47344 Closed yaooqinn pushed a commit to apache/spark that referenced this pull request Jul 15, 2024 [SPARK-48894][TESTS] Upgrade docker-java to 3.4.0 d343b23
### What changes were proposed in this pull request?

This PR aims to upgrade `docker-java` to 3.4.0.

### Why are the changes needed?

There some improvements, such as:

- Enhancements

Enable protocol configuration of SSLContext (docker-java/docker-java#2337)

- Bug Fixes

Consider already existing images as successful pulls (docker-java/docker-java#2335)

Full release notes:
https://github.com/docker-java/docker-java/releases/tag/3.4.0

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Pass GA.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes #47344 from wayneguow/SPARK-48894.

Authored-by: Wei Guo <guow93@gmail.com>
Signed-off-by: Kent Yao <yao@apache.org>
jingz-db pushed a commit to jingz-db/spark that referenced this pull request Jul 22, 2024 [SPARK-48894][TESTS] Upgrade docker-java to 3.4.0 f34ec9f
### What changes were proposed in this pull request?

This PR aims to upgrade `docker-java` to 3.4.0.

### Why are the changes needed?

There some improvements, such as:

- Enhancements

Enable protocol configuration of SSLContext (docker-java/docker-java#2337)

- Bug Fixes

Consider already existing images as successful pulls (docker-java/docker-java#2335)

Full release notes:
https://github.com/docker-java/docker-java/releases/tag/3.4.0

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Pass GA.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes apache#47344 from wayneguow/SPARK-48894.

Authored-by: Wei Guo <guow93@gmail.com>
Signed-off-by: Kent Yao <yao@apache.org>
Sign up for free to join this conversation on GitHub . Already have an account? Sign in to comment

Labels

type/bug

2 participants