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
fix: add IdxFileSize check to pre-delete volume verification
Chris Lucf3693651cf4
diff --git a/weed/worker/tasks/balance/balance_task.go b/weed/worker/tasks/balance/balance_task.goindex 140e5db06f..261c0c5b98 100644--- a/weed/worker/tasks/balance/balance_task.go+++ b/weed/worker/tasks/balance/balance_task.go@@ -137,6 +137,10 @@ func (t *BalanceTask) Execute(ctx context.Context, params *worker_pb.TaskParams)return fmt.Errorf("aborting: volume %d file count mismatch — source %d, target %d",volumeId, sourceStatus.FileCount, targetStatus.FileCount)}+ if targetStatus.IdxFileSize != sourceStatus.IdxFileSize {+ return fmt.Errorf("aborting: volume %d .idx size mismatch — source %d bytes, target %d bytes",+ volumeId, sourceStatus.IdxFileSize, targetStatus.IdxFileSize)+ }// Step 6: Delete from source — after this, the move is committed.// Clear the readonly flag so the defer doesn't try to restore writability.