satellite/gracefulexit: add log message when node fails validation for piece transfer
Change-Id: Ic5a53404ceb35003793aebc63637e7f8a58ef259
This commit is contained in:
parent
6352d46100
commit
46df8c1977
@ -272,6 +272,12 @@ func (endpoint *Endpoint) Process(stream pb.DRPCSatelliteGracefulExit_ProcessStr
|
||||
continue
|
||||
}
|
||||
if ErrInvalidArgument.Has(err) {
|
||||
messageBytes, marshalErr := pb.Marshal(request)
|
||||
if marshalErr != nil {
|
||||
return rpcstatus.Error(rpcstatus.Internal, marshalErr.Error())
|
||||
}
|
||||
endpoint.log.Warn("storagenode failed validation for piece transfer", zap.Stringer("node ID", nodeID), zap.Binary("original message from storagenode", messageBytes), zap.Error(err))
|
||||
|
||||
// immediately fail and complete graceful exit for nodes that fail satellite validation
|
||||
err = endpoint.db.IncrementProgress(ctx, nodeID, 0, 0, 1)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user