From bbe700fa37f016f61f756db3c4e3e8558ebb78ee Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Mon, 14 Dec 2020 21:03:21 +0300 Subject: [PATCH] [#250] service/policer: Don't shrink node list at unknown error Every unknown error must not decrease shortage counter and must not exclude faulty node from the node list, because this list will be used later for replication. Signed-off-by: Alex Vanin --- pkg/services/policer/check.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/services/policer/check.go b/pkg/services/policer/check.go index 943df4857..837b547cd 100644 --- a/pkg/services/policer/check.go +++ b/pkg/services/policer/check.go @@ -85,6 +85,8 @@ func (p *Policer) processNodes(ctx context.Context, addr *object.Address, nodes log.Error("could not receive object header", zap.String("error", err.Error()), ) + + continue } } else { shortage--