From e723a2a4fbf1d9d833ecce1a85856ac9fcafae38 Mon Sep 17 00:00:00 2001 From: pingqiu Date: Thu, 19 Nov 2026 01:59:57 -0800 Subject: [PATCH] nvme: identify command expiry separately from capacity pressure --- seaweed-block/core/frontend/nvme/io.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seaweed-block/core/frontend/nvme/io.go b/seaweed-block/core/frontend/nvme/io.go index f32075350f..cf34a05550 100644 --- a/seaweed-block/core/frontend/nvme/io.go +++ b/seaweed-block/core/frontend/nvme/io.go @@ -300,7 +300,7 @@ func (h *IOHandler) write(ctx context.Context, cmd IOCommand) IOResult { // must retain its terminal mapping even when the command deadline also passed. func mapWriteBudgetError(ctx context.Context, err error, op string) IOResult { if ctx.Err() == context.DeadlineExceeded && onlyDeadlineCause(err) { - err = fmt.Errorf("%w: %w", frontend.ErrBackendBusy, err) + return IOResult{SCT: SCTGeneric, SC: SCNamespaceNotReady, retryable: true, Reason: "command deadline on " + op + ": " + err.Error()} } return mapBackendError(err, op) }