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
more error messages
Chris Lu7d8e9f829c11
diff --git a/weed-fs/src/pkg/operation/lookup.go b/weed-fs/src/pkg/operation/lookup.goindex fa5f149a17..720286c318 100644--- a/weed-fs/src/pkg/operation/lookup.go+++ b/weed-fs/src/pkg/operation/lookup.go@@ -5,7 +5,8 @@ import ("net/url""pkg/storage""pkg/util"- "fmt"+ _ "fmt"+ "errors")type Location struct {@@ -17,11 +18,11 @@ type LookupResult struct {Error string "error"}+//TODO: Add a caching for vid herefunc Lookup(server string, vid storage.VolumeId) (*LookupResult, error) {values := make(url.Values)values.Add("volumeId", vid.String())jsonBlob, err := util.Post("http://"+server+"/dir/lookup", values)- fmt.Println("Lookup Result:", string(jsonBlob))if err != nil {return nil, err}@@ -30,5 +31,8 @@ func Lookup(server string, vid storage.VolumeId) (*LookupResult, error) {if err != nil {return nil, err}+ if ret.Error != ""{+ return nil, errors.New(ret.Error)+ }return &ret, nil}