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
just exit in case of duplicated volume directories were loaded
guol-fnst076595fbdd50
diff --git a/weed/command/volume.go b/weed/command/volume.goindex 645c698b17..b1455352c9 100644--- a/weed/command/volume.go+++ b/weed/command/volume.go@@ -267,7 +267,7 @@ func (v VolumeServerOptions) startVolumeServer(volumeFolders, maxVolumeCounts, vstopChan := make(chan bool)grace.OnInterrupt(func() {- fmt.Println("volume server has be killed")+ fmt.Println("volume server has been killed")// Stop heartbeatsif !volumeServer.StopHeartbeat() {diff --git a/weed/server/volume_grpc_client_to_master.go b/weed/server/volume_grpc_client_to_master.goindex 5e341f07c3..f14b8bcaae 100644--- a/weed/server/volume_grpc_client_to_master.go+++ b/weed/server/volume_grpc_client_to_master.go@@ -3,7 +3,6 @@ package weed_serverimport ("fmt""os"- "syscall""time""github.com/chrislusf/seaweedfs/weed/operation"@@ -121,9 +120,7 @@ func (vs *VolumeServer) doHeartbeat(masterAddress pb.ServerAddress, grpcDialOpti}if in.HasDuplicatedDirectory {glog.Error("Shut Down Volume Server due to duplicated volume directory")- glog.V(0).Infof("send SIGINT to Volume Server")- p, _ := os.FindProcess(vs.pid)- p.Signal(syscall.SIGINT)+ os.Exit(1)}if in.GetVolumeSizeLimit() != 0 && vs.store.GetVolumeSizeLimit() != in.GetVolumeSizeLimit() {vs.store.SetVolumeSizeLimit(in.GetVolumeSizeLimit())diff --git a/weed/server/volume_server.go b/weed/server/volume_server.goindex f927dbdb8d..477a3709cf 100644--- a/weed/server/volume_server.go+++ b/weed/server/volume_server.go@@ -2,7 +2,6 @@ package weed_serverimport ("net/http"- "os""sync""github.com/chrislusf/seaweedfs/weed/pb"@@ -45,7 +44,6 @@ type VolumeServer struct {fileSizeLimitBytes int64isHeartbeating boolstopChan chan bool- pid int}func NewVolumeServer(adminMux, publicMux *http.ServeMux, ip string,@@ -89,7 +87,6 @@ func NewVolumeServer(adminMux, publicMux *http.ServeMux, ip string,inFlightDownloadDataLimitCond: sync.NewCond(new(sync.Mutex)),concurrentUploadLimit: concurrentUploadLimit,concurrentDownloadLimit: concurrentDownloadLimit,- pid: os.Getpid(),}vs.SeedMasterNodes = masterNodes