Skip to content

Consider already existing images as successful pulls. #2335

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
merged 4 commits into from
Jul 9, 2024

Conversation

n-g
Copy link
Contributor

@n-g n-g commented Jun 6, 2024

@n-g n-g requested a review from a team as a code owner June 6, 2024 14:31
@n-g
Copy link
Contributor Author

n-g commented Jun 11, 2024

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.

@eddumelendez eddumelendez added this to the next milestone Jul 9, 2024
@eddumelendez eddumelendez merged commit b28b0dc into docker-java:main Jul 9, 2024
5 checks passed
@eddumelendez
Copy link
Member

Thanks for your contribution, @n-g !

yaooqinn pushed a commit to apache/spark that referenced this pull request Jul 15, 2024
### 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
### 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>
attilapiros pushed a commit to attilapiros/spark that referenced this pull request Oct 4, 2024
### 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>
himadripal pushed a commit to himadripal/spark that referenced this pull request Oct 19, 2024
### 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

com.github.dockerjava.api.model.PullResponseItem#isPullSuccessIndicated fails to check for "Exists" status
2 participants