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
test: assert ReadFileStatusCount in batch execution test
Chris Luf220328ae41c
diff --git a/test/plugin_workers/volume_balance/execution_test.go b/test/plugin_workers/volume_balance/execution_test.goindex e7c13154b2..6e711227de 100644--- a/test/plugin_workers/volume_balance/execution_test.go+++ b/test/plugin_workers/volume_balance/execution_test.go@@ -139,6 +139,13 @@ func TestVolumeBalanceBatchExecutionIntegration(t *testing.T) {require.True(t, deletedVols[vid], "volume %d should have been deleted from source", vid)}+ // Pre-delete verification should have called ReadVolumeFileStatus on both+ // source and target for each volume.+ require.Equal(t, len(volumeIDs), source.ReadFileStatusCount(),+ "each move should read source volume status before delete")+ require.Equal(t, len(volumeIDs), target.ReadFileStatusCount(),+ "each move should read target volume status before delete")+// Target should have received copy and tail calls for all 3 volumes.copyCalls, _, tailCalls := target.BalanceStats()require.Equal(t, len(volumeIDs), copyCalls, "target should receive one copy per volume")