From 30c6ebda2cfb8915849913d8ba23ec65998f06a8 Mon Sep 17 00:00:00 2001 From: pingqiu Date: Mon, 30 Nov 2026 21:27:05 -0800 Subject: [PATCH] launcher: the removed-engine refusal is the provider's typed error RenderBlockVolumeDeployments refuses smartwal and parallel-walstore through durable.RemovedEngineName, wrapped with %w, so callers get the same *durable.RemovedEngineError (engine, advice) as from the provider and blockvolume, and no manifest. blockmaster already depended on the durable package through its other imports; nothing is added to its build. Co-Authored-By: Claude Opus 5.5 --- seaweed-block/core/launcher/k8s_renderer.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/seaweed-block/core/launcher/k8s_renderer.go b/seaweed-block/core/launcher/k8s_renderer.go index 7ce916f4c2..90f557f211 100644 --- a/seaweed-block/core/launcher/k8s_renderer.go +++ b/seaweed-block/core/launcher/k8s_renderer.go @@ -8,6 +8,7 @@ import ( "strings" "github.com/seaweedfs/seaweed-block/core/frontend/chunkstore/layout" + "github.com/seaweedfs/seaweed-block/core/frontend/durable" "github.com/seaweedfs/seaweed-block/core/lifecycle" "gopkg.in/yaml.v3" ) @@ -63,10 +64,12 @@ func RenderBlockVolumeDeployments(plan lifecycle.BlockVolumeWorkloadPlan, cfg K8 if cfg.DurableImpl == "" { cfg.DurableImpl = "walstore" } + // the removed experimental engines are refused typed, exactly as the provider and blockvolume refuse them + if err := durable.RemovedEngineName(cfg.DurableImpl); err != nil { + return nil, fmt.Errorf("launcher: %w", err) + } switch cfg.DurableImpl { case "walstore": - case "smartwal", "parallel-walstore": - return nil, fmt.Errorf("launcher: durable impl %q is a removed experimental engine; a volume it created by a removed experimental engine; copy the data to a walstore volume with v1.0.x first", cfg.DurableImpl) default: return nil, fmt.Errorf("launcher: durable impl %q invalid; want walstore", cfg.DurableImpl) }