diff --git a/pkg/local_object_storage/engine/engine.go b/pkg/local_object_storage/engine/engine.go index 7bc84e6c..bb0b682d 100644 --- a/pkg/local_object_storage/engine/engine.go +++ b/pkg/local_object_storage/engine/engine.go @@ -1,6 +1,7 @@ package engine import ( + "context" "errors" "sync" "sync/atomic" @@ -196,7 +197,7 @@ func (e *StorageEngine) reportShardErrorWithFlags( } func isLogical(err error) bool { - return errors.As(err, &logicerr.Logical{}) + return errors.As(err, &logicerr.Logical{}) || errors.Is(err, context.Canceled) || errors.Is(err, context.DeadlineExceeded) } // Option represents StorageEngine's constructor option.