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
shell: keep the source readonly when the incomplete target copy cannot be deleted (#10705)
Chris Lu0b1f0cafee1e
diff --git a/weed/shell/command_volume_move.go b/weed/shell/command_volume_move.goindex 485425f7ac..3a218f1db8 100644--- a/weed/shell/command_volume_move.go+++ b/weed/shell/command_volume_move.go@@ -117,7 +117,10 @@ func LiveMoveVolume(ctx context.Context, grpcDialOption grpc.DialOption, writerdeleteCtx, deleteCancel := context.WithTimeout(context.WithoutCancel(ctx), 30*time.Second)defer deleteCancel()if dErr := deleteVolume(deleteCtx, grpcDialOption, volumeId, targetVolumeServer, false, true); dErr != nil {- log.Printf("failed to delete the incomplete copy of volume %d on %s: %v", volumeId, targetVolumeServer, dErr)+ // Restoring the source while the stale target stays mounted+ // risks divergent replicas; re-running the move recovers both.+ log.Printf("volume %d is left readonly on %s: failed to delete the incomplete copy on %s: %v; re-run volume.move to recover", volumeId, sourceVolumeServer, targetVolumeServer, dErr)+ return}}restoreCtx, restoreCancel := context.WithTimeout(context.WithoutCancel(ctx), 30*time.Second)