[#312] pool: Ignore ECInfoErr
erros in GetSplitInfo
* Ignore `ECInfoError` errors after raw `HeadObject` request Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
This commit is contained in:
parent
0dc29eef9d
commit
015f6e3891
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue