8000 use cached blob statter in ManifestService if available by Ollegio · Pull Request #4595 · distribution/distribution · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

use cached blob statter in ManifestService if available #4595

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

Ollegio
Copy link
@Ollegio Ollegio commented Mar 11, 2025

Fixes #4569, #3322

Copy link
Member
@milosgajdos milosgajdos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

PTAL @thaJeztah

@milosgajdos milosgajdos requested a review from davidspek March 11, 2025 14:37
Comment on lines 8 to 11
"github.com/distribution/reference"

"github.com/distribution/distribution/v3"
"github.com/distribution/distribution/v3/registry/storage/cache"
storagedriver "github.com/distribution/distribution/v3/registry/storage/driver"
"github.com/distribution/reference"
Copy link
8000 Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did we change the convention for grouping in general? If not, then it's better to keep this separate, so that the commits don't make unrelated changes.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was my default format settings, didn't notice, thanks, reverted this change

"github.com/distribution/reference"
"github.com/opencontainers/go-digest"
"github.com/opencontainers/image-spec/specs-go"
v1 "github.com/opencontainers/image-spec/specs-go/v1"

"github.com/distribution/distribution/v3"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

Comment on lines 651 to 655
func createManifestListDescriptor(t *testing.T, testname string, manifest distribution.Manifest, platformSpec *manifestlist.PlatformSpec) manifestlist.ManifestDescriptor {
func createManifestListDescriptor(
t *testing.T, testname string, manifest distribution.Manifest, platformSpec *manifestlist.PlatformSpec,
) manifestlist.ManifestDescriptor {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one as well (I think this is only a formatting change, correct?).

@milosgajdos milosgajdos requested a review from thaJeztah March 11, 2025 15:56
@milosgajdos
Copy link
Member

@Ollegio can you squash?

Signed-off-by: Oleg Gnusarev <ognusarev@mts.ru>
@Ollegio Ollegio force-pushed the bugfix/clear-cache-on-manifest-delete branch from 483133f to b30274f Compare March 11, 2025 16:42
@Ollegio
Copy link
Author
Ollegio commented Mar 11, 2025

@milosgajdos ok, done

Copy link
Member
@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

LGTM

@milosgajdos milosgajdos merged commit 2a47e44 into distribution:main Mar 11, 2025
19 checks passed
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.

Garbage collect deletes blobs in disk but blobs are still in memory and registry does not accept the push twice
4 participants
0