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 tests
chrisluc547cd7c18a3
diff --git a/weed/topology/volume_growth_reservation_test.go b/weed/topology/volume_growth_reservation_test.goindex 7b06e626d4..36b57a49c7 100644--- a/weed/topology/volume_growth_reservation_test.go+++ b/weed/topology/volume_growth_reservation_test.go@@ -150,15 +150,17 @@ func TestVolumeGrowth_ConcurrentAllocationPreventsRaceCondition(t *testing.T) {successCount.Add(1)t.Logf("Request %d succeeded, got reservation", requestId)- // Release the reservation to simulate completion+ // Simulate completion: increment volume count BEFORE releasing reservationif reservation != nil {- reservation.releaseAllReservations()- // Simulate volume creation by incrementing count+ // First, increment the volume count to reflect the created volumedisk := dn.children[NodeId(types.HardDriveType.String())].(*Disk)deltaDiskUsage := &DiskUsageCounts{volumeCount: 1,}disk.UpAdjustDiskUsageDelta(types.HardDriveType, deltaDiskUsage)++ // Then release the reservation+ reservation.releaseAllReservations()}}}(i)