mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 02:27:26 +01:00
test: register the GC fixture volume before authority publication
This commit is contained in:
1 parent
9c29ee9c42
commit
e5578df747
1 file changed
+5
@@ -130,6 +130,11 @@ func TestIntegration_OpsChunkGC_RealMasterAndStore(t *testing.T) {
|
||||
t.Error(err)
|
||||
}
|
||||
})
|
||||
// The remote catalog VOLUME is distinct from the master's desired-volume
|
||||
// registry. Register the live RF1 volume before observations mint authority.
|
||||
if _, err = m.Lifecycle().Volumes.CreateVolume(lifecycle.VolumeSpec{VolumeID: "vol-a", SizeBytes: 64 * 4096, ReplicationFactor: 1}); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if _, err = m.Lifecycle().Placements.ApplyPlan(lifecycle.PlacementPlan{VolumeID: "vol-a", DesiredRF: 1, Candidates: []lifecycle.PlacementCandidate{{VolumeID: "vol-a", ServerID: "node-a", ReplicaID: "r2", Source: lifecycle.PlacementSourceExistingReplica}}}); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user