aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-04-21 10:17:12 -0700
committerChris Lu <chris.lu@gmail.com>2021-04-21 10:17:12 -0700
commita8114da02dddd65b0371e7a9e6a5125d085c55d4 (patch)
tree882da8fc265ccf89674f80d0751652e4f137b6a6
parentae74d8f02a1eefad220bb9649db5b2c5ed032d3b (diff)
downloadseaweedfs-a8114da02dddd65b0371e7a9e6a5125d085c55d4.tar.xz
seaweedfs-a8114da02dddd65b0371e7a9e6a5125d085c55d4.zip
avoid thundering herd effect
transient errors may cause thundering herd effect to all trying to recover from remove ec shards
-rw-r--r--weed/storage/store_ec.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/weed/storage/store_ec.go b/weed/storage/store_ec.go
index f4587ba01..9702fdd50 100644
--- a/weed/storage/store_ec.go
+++ b/weed/storage/store_ec.go
@@ -200,7 +200,6 @@ func (s *Store) readOneEcShardInterval(needleId types.NeedleId, ecVolume *erasur
return
}
glog.V(0).Infof("clearing ec shard %d.%d locations: %v", ecVolume.VolumeId, shardId, err)
- forgetShardId(ecVolume, shardId)
}
// try reading by recovering from other shards