From e3664d50e0d3c2581401e522321ba5ca65f45e5f Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Mon, 30 Sep 2024 10:12:40 +0200 Subject: [PATCH] chunked: ignore ErrLayerUnknown when creating cache ignore the error if the layer is being deleted while we are processing it without a lock on the store. Signed-off-by: Giuseppe Scrivano --- pkg/chunked/cache_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/chunked/cache_linux.go b/pkg/chunked/cache_linux.go index a7dc18be42..cbf7f64585 100644 --- a/pkg/chunked/cache_linux.go +++ b/pkg/chunked/cache_linux.go @@ -297,7 +297,7 @@ func (c *layersCache) load() error { // the cache file is either not present or broken. Try to generate it from the TOC. l, err = c.createCacheFileFromTOC(r.ID) - if err != nil { + if err != nil && !errors.Is(err, storage.ErrLayerUnknown) { logrus.Warningf("Error creating cache file for layer %q: %v", r.ID, err) } if l != nil {