From cf873f7c87813ef09a9a9629c0c9539e61140f82 Mon Sep 17 00:00:00 2001 From: Dominique Pfister Date: Tue, 8 Oct 2024 13:50:00 +0200 Subject: [PATCH] fix: use smaller queue size for multiple deletes --- packages/helix-shared-storage/src/storage.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/helix-shared-storage/src/storage.js b/packages/helix-shared-storage/src/storage.js index 8c1f61ea..916cd15c 100644 --- a/packages/helix-shared-storage/src/storage.js +++ b/packages/helix-shared-storage/src/storage.js @@ -575,7 +575,7 @@ class Bucket { let oks = 0; let errors = 0; await processQueue(chunks, async (chunk) => { - log.info(`deleting ${chunk.length} from ${bucket}`); + log.debug(`deleting ${chunk.length} from ${bucket}`); const input = { Bucket: bucket, Delete: { @@ -589,10 +589,10 @@ class Bucket { oks += chunk.length; } catch (e) { // at least 1 cmd failed - log.warn(`error while deleting ${chunk.length} from ${bucket}: ${e.$metadata.httpStatusCode}`); + log.warn(`error while deleting ${chunk.length} from ${bucket}/${src}: ${e.message} (${e.$metadata.httpStatusCode})`); errors += chunk.length; } - }, 64); + }, 2); log.info(`deleted ${oks} files (${errors} errors)`); } }