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
s3: continuously listen to file updates
Chris Lu71a8c80f6ff5
diff --git a/weed/s3api/auth_credentials_subscribe.go b/weed/s3api/auth_credentials_subscribe.goindex 05cce632ac..dac1343e00 100644--- a/weed/s3api/auth_credentials_subscribe.go+++ b/weed/s3api/auth_credentials_subscribe.go@@ -8,7 +8,7 @@ import ("github.com/chrislusf/seaweedfs/weed/util")-func (s3a *S3ApiServer) subscribeMetaEvents(clientName string, prefix string, lastTsNs int64) error {+func (s3a *S3ApiServer) subscribeMetaEvents(clientName string, prefix string, lastTsNs int64) {processEventFn := func(resp *filer_pb.SubscribeMetadataResponse) error {@@ -32,8 +32,11 @@ func (s3a *S3ApiServer) subscribeMetaEvents(clientName string, prefix string, lareturn nil}- return util.Retry("followIamChanges", func() error {+ util.RetryForever("followIamChanges", func() error {return pb.WithFilerClientFollowMetadata(s3a, clientName, prefix, lastTsNs, 0, processEventFn, true)+ }, func(err error) bool {+ glog.V(0).Infof("iam follow metadata changes: %v", err)+ return true})}