SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
volume: avoid inifinite loop reading ec volume info if error happens
Chris Luee2072dff921
diff --git a/weed/storage/store_ec.go b/weed/storage/store_ec.goindex 7e3f1a46cf..208560b7e0 100644--- a/weed/storage/store_ec.go+++ b/weed/storage/store_ec.go@@ -120,8 +120,13 @@ func (s *Store) ReadEcShardNeedle(ctx context.Context, vid needle.VolumeId, n *nif localEcVolume, found := location.FindEcVolume(vid); found {// read the volume version+ readCounter := 0for localEcVolume.Version == 0 {err := s.readEcVolumeVersion(ctx, vid, localEcVolume)+ readCounter+++ if readCounter > 10 && err != nil {+ return 0, fmt.Errorf("fail to read ec volume %d: %v", vid, err)+ }time.Sleep(1357 * time.Millisecond)glog.V(0).Infof("ReadEcShardNeedle vid %d version:%v: %v", vid, localEcVolume.Version, err)}