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
shutdown follower if no clients, not only publishers
chrislu237e68059d83
diff --git a/weed/mq/topic/local_partition.go b/weed/mq/topic/local_partition.goindex 0873d6bd7b..40ab3cee63 100644--- a/weed/mq/topic/local_partition.go+++ b/weed/mq/topic/local_partition.go@@ -190,7 +190,7 @@ func (p *LocalPartition) MaybeConnectToFollowers(initMessage *mq_pb.PublishMessafunc (p *LocalPartition) MaybeShutdownLocalPartition() (hasShutdown bool) {- if p.Publishers.Size() == 0 {+ if p.Publishers.Size() == 0 && p.Subscribers.Size() == 0 {if p.followerStream != nil {// send close to the followerif followErr := p.followerStream.Send(&mq_pb.PublishFollowMeRequest{@@ -205,9 +205,7 @@ func (p *LocalPartition) MaybeShutdownLocalPartition() (hasShutdown bool) {p.followerStream = nilp.follower = ""}- }- if p.Publishers.Size() == 0 && p.Subscribers.Size() == 0 {p.LogBuffer.ShutdownLogBuffer()hasShutdown = true}