From 36013f63ed612f30ec2880c93c9a17ba01b17438 Mon Sep 17 00:00:00 2001 From: Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.com> Date: Mon, 14 Feb 2022 13:59:12 +0500 Subject: [PATCH 1/2] https://github.com/chrislusf/seaweedfs/issues/2648 --- weed/topology/store_replicate.go | 1 + 1 file changed, 1 insertion(+) diff --git a/weed/topology/store_replicate.go b/weed/topology/store_replicate.go index b0d063ac9..176e77139 100644 --- a/weed/topology/store_replicate.go +++ b/weed/topology/store_replicate.go @@ -101,6 +101,7 @@ func ReplicatedWrite(masterFn operation.GetMasterFn, grpcDialOption grpc.DialOpt stats.VolumeServerRequestCounter.WithLabelValues(stats.ErrorWriteToReplicas).Inc() err = fmt.Errorf("failed to write to replicas for volume %d: %v", volumeId, err) glog.V(0).Infoln(err) + return } } return From 0ed76a05567f5d047f70b1bc987be5f3425f67fb Mon Sep 17 00:00:00 2001 From: Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.com> Date: Mon, 14 Feb 2022 14:10:06 +0500 Subject: [PATCH 2/2] clearly --- weed/topology/store_replicate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/topology/store_replicate.go b/weed/topology/store_replicate.go index 176e77139..65625b3b7 100644 --- a/weed/topology/store_replicate.go +++ b/weed/topology/store_replicate.go @@ -101,7 +101,7 @@ func ReplicatedWrite(masterFn operation.GetMasterFn, grpcDialOption grpc.DialOpt stats.VolumeServerRequestCounter.WithLabelValues(stats.ErrorWriteToReplicas).Inc() err = fmt.Errorf("failed to write to replicas for volume %d: %v", volumeId, err) glog.V(0).Infoln(err) - return + return false, err } } return