Ignore ECInfoErr errors in GetSplitInfo in pool #314

Merged
fyrchik merged 1 commit from aarifullin/frostfs-sdk-go:fix/ignore_ecinfo_err into master 2024-12-12 10:12:25 +00:00

View file

@ -3211,11 +3211,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)