From 015f6e3891961a83a1e3d81f2887d0182d3fef66 Mon Sep 17 00:00:00 2001 From: Airat Arifullin Date: Wed, 11 Dec 2024 18:23:37 +0300 Subject: [PATCH] [#312] pool: Ignore `ECInfoErr` erros in `GetSplitInfo` * Ignore `ECInfoError` errors after raw `HeadObject` request Signed-off-by: Airat Arifullin --- pool/pool.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pool/pool.go b/pool/pool.go index 832f7ab..313e76b 100644 --- a/pool/pool.go +++ b/pool/pool.go @@ -2985,11 +2985,12 @@ func (p *Pool) GetSplitInfo(ctx context.Context, cnrID cid.ID, objID oid.ID, tok _, err := p.HeadObject(ctx, prm) var errSplit *object.SplitInfoError + var errECInfo *object.ECInfoError switch { case errors.As(err, &errSplit): return errSplit.SplitInfo(), nil - case err == nil: + case err == nil || errors.As(err, &errECInfo): return nil, relations.ErrNoSplitInfo default: return nil, fmt.Errorf("failed to get raw object header: %w", err)