From 56442c0be323e1ac1493161b0be656950a7f2862 Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Mon, 14 Nov 2022 20:03:39 +0300 Subject: [PATCH] [#2053] engine: Do not switch mode because of logical errors Signed-off-by: Pavel Karpy --- pkg/local_object_storage/engine/engine.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkg/local_object_storage/engine/engine.go b/pkg/local_object_storage/engine/engine.go index c7aeed0c7..275e51c02 100644 --- a/pkg/local_object_storage/engine/engine.go +++ b/pkg/local_object_storage/engine/engine.go @@ -120,6 +120,13 @@ func (e *StorageEngine) reportShardErrorBackground(id string, msg string, err er return } + if isLogical(err) { + e.log.Warn(msg, + zap.Stringer("shard_id", sh.ID()), + zap.String("error", err.Error())) + return + } + errCount := sh.errorCount.Inc() e.reportShardErrorWithFlags(sh.Shard, errCount, false, msg, err) }