From 5e6af9b7f60a375aa4f3bbce7994737a5b15c045 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Adel=C3=B6w?= Date: Thu, 21 May 2026 17:12:25 +0200 Subject: [PATCH] fix(catalog-backend): fix stitcher error message and warn on unknown strategy mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) Signed-off-by: Fredrik Adelöw --- plugins/catalog-backend/src/stitching/DefaultStitcher.ts | 2 +- plugins/catalog-backend/src/stitching/types.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/catalog-backend/src/stitching/DefaultStitcher.ts b/plugins/catalog-backend/src/stitching/DefaultStitcher.ts index 335d82f173..a6f794a0aa 100644 --- a/plugins/catalog-backend/src/stitching/DefaultStitcher.ts +++ b/plugins/catalog-backend/src/stitching/DefaultStitcher.ts @@ -80,7 +80,7 @@ export class DefaultStitcher { async start() { if (this.stopFunc) { - throw new Error('Processing engine is already started'); + throw new Error('Stitcher is already started'); } const { pollingInterval, stitchTimeout } = this.strategy; diff --git a/plugins/catalog-backend/src/stitching/types.ts b/plugins/catalog-backend/src/stitching/types.ts index 4d055513b1..5e11f17fab 100644 --- a/plugins/catalog-backend/src/stitching/types.ts +++ b/plugins/catalog-backend/src/stitching/types.ts @@ -42,6 +42,10 @@ export function stitchingStrategyFromConfig( options?.logger?.warn( "The 'immediate' stitching strategy mode has been removed and is no longer supported. Falling back to deferred stitching. Please remove the 'catalog.stitchingStrategy.mode' configuration key.", ); + } else if (strategyMode !== undefined && strategyMode !== 'deferred') { + options?.logger?.warn( + `Unknown stitching strategy mode '${strategyMode}', falling back to deferred stitching. Please remove or correct the 'catalog.stitchingStrategy.mode' configuration key.`, + ); } const pollingIntervalKey = 'catalog.stitchingStrategy.pollingInterval';