Fix checking EC parent existence on Put object to shard #1548
1 changed files with 2 additions and 0 deletions
|
@ -281,6 +281,8 @@ func (p *Policer) adjustECPlacement(ctx context.Context, objInfo objectcore.Info
|
||||||
}
|
}
|
||||||
chunkIDs[ch.Index] = ecInfoChunkID
|
chunkIDs[ch.Index] = ecInfoChunkID
|
||||||
}
|
}
|
||||||
|
} else if client.IsErrObjectAlreadyRemoved(err) {
|
||||||
|
|||||||
|
restore = false
|
||||||
} else if !p.cfg.netmapKeys.IsLocalKey(n.PublicKey()) && uint32(idx) < objInfo.ECInfo.Total {
|
} else if !p.cfg.netmapKeys.IsLocalKey(n.PublicKey()) && uint32(idx) < objInfo.ECInfo.Total {
|
||||||
p.log.Warn(ctx, logs.PolicerCouldNotGetObjectFromNodeMoving, zap.String("node", hex.EncodeToString(n.PublicKey())), zap.Stringer("object", parentAddress), zap.Error(err))
|
p.log.Warn(ctx, logs.PolicerCouldNotGetObjectFromNodeMoving, zap.String("node", hex.EncodeToString(n.PublicKey())), zap.Stringer("object", parentAddress), zap.Error(err))
|
||||||
p.replicator.HandleReplicationTask(ctx, replicator.Task{
|
p.replicator.HandleReplicationTask(ctx, replicator.Task{
|
||||||
|
|
Loading…
Add table
Reference in a new issue
I think I've suggested similar changes for
REP
policy handling (#1543), but #1543 (comment) was said to me.@fyrchik Could you please comment?
ok, fixed
What exactly was fixed? Is seems you still introduce a new behaviour:

Sorry, the behaviour is the same, why have this commit at all?
Technically this commit relates to policer, but others relate to engine.
If the actual question is why this change, then this change if required to not to perform PUT request as we know, that object already removed and PUT request will fail anyway.