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
currentMaster redirected
Konstantin Lebedev9bff097b01e9
diff --git a/weed/wdclient/masterclient.go b/weed/wdclient/masterclient.goindex 0e58a37530..35f1c4cf8c 100644--- a/weed/wdclient/masterclient.go+++ b/weed/wdclient/masterclient.go@@ -188,8 +188,8 @@ func (mc *MasterClient) tryConnectToMaster(master pb.ServerAddress) (nextHintedLif resp.VolumeLocation != nil {// maybe the leader is changed- if resp.VolumeLocation.Leader != "" {- glog.V(0).Infof("redirected to leader %v", resp.VolumeLocation.Leader)+ if resp.VolumeLocation.Leader != "" && string(mc.currentMaster) != resp.VolumeLocation.Leader {+ glog.V(0).Infof("currentMaster %v redirected to leader %v", mc.currentMaster, resp.VolumeLocation.Leader)nextHintedLeader = pb.ServerAddress(resp.VolumeLocation.Leader)stats.MasterClientConnectCounter.WithLabelValues(stats.RedirectedToleader).Inc()return nil