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
filer.backup: ignore missing volume/lookup errors when -ignore404Error is set (#7889)
Chris Lu935f41bff661
diff --git a/weed/command/filer_backup.go b/weed/command/filer_backup.goindex 996260c1e2..3387fccbf0 100644--- a/weed/command/filer_backup.go+++ b/weed/command/filer_backup.go@@ -146,10 +146,17 @@ func doFilerBackup(grpcDialOption grpc.DialOption, backupOption *FilerBackupOptiif err == nil {return nil}+ // ignore HTTP 404 from remote readsif errors.Is(err, http.ErrNotFound) {glog.V(0).Infof("got 404 error, ignore it: %s", err.Error())return nil}+ // also ignore missing volume/lookup errors coming from LookupFileId or vid map+ errStr := err.Error()+ if strings.Contains(errStr, "LookupFileId") || (strings.Contains(errStr, "volume id") && strings.Contains(errStr, "not found")) {+ glog.V(0).Infof("got missing-volume error, ignore it: %s", errStr)+ return nil+ }return err}} else {