From dfc112c06b6d309a1380ed5e14ee2976e5649df9 Mon Sep 17 00:00:00 2001 From: Anis Eleuch Date: Thu, 18 Apr 2024 05:42:11 +0100 Subject: [PATCH] list: Fix rare listing continuation freeze (#19524) Reading the list metacache is not protected by a lock; the code retries when it fails to read the metacache object, however, it forgot to re-read the metacache object from the drives, which is necessary, especially if the metacache object is inlined. This commit will ensure that we always re-read the metacache object from the drives when it is retrying. --- cmd/metacache-set.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/metacache-set.go b/cmd/metacache-set.go index e2d56025a..56ee5ce72 100644 --- a/cmd/metacache-set.go +++ b/cmd/metacache-set.go @@ -573,6 +573,7 @@ func (er *erasureObjects) streamMetadataParts(ctx context.Context, o listPathOpt continue case InsufficientReadQuorum: retries++ + loadedPart = -1 time.Sleep(retryDelay250) continue default: