diff --git a/cmd/batch-handlers.go b/cmd/batch-handlers.go index 7e0fc575c..cd37514b2 100644 --- a/cmd/batch-handlers.go +++ b/cmd/batch-handlers.go @@ -595,12 +595,12 @@ func (r *BatchJobReplicateV1) Start(ctx context.Context, api ObjectLayer, job Ba stopFn := globalBatchJobsMetrics.trace(batchReplicationMetricObject, job.ID, attempts, result) success := true if err := r.ReplicateToTarget(ctx, api, c, result, retry); err != nil { - stopFn(err) if isErrVersionNotFound(err) || isErrObjectNotFound(err) { // object must be deleted concurrently, allow // these failures but do not count them continue } + stopFn(err) logger.LogIf(ctx, err) success = false } else {