mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 18:47:20 +01:00
master: an empty fenced answer counts only on a read, valid table
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a034d3f7a3
commit
fdf0ad08c2
1 file changed
+3
@@ -149,6 +149,9 @@ func TestPromotionGate_EmptyVolumePrimaryLost(t *testing.T) {
|
||||
}{
|
||||
"both fenced at end 0": {fencedAs(PromotionCandidateEvidence{ReplicaID: "r2", Ready: true, Floor: 2, TableValid: true}, PromotionCandidateEvidence{ReplicaID: "r3", Ready: true, Floor: 2, TableValid: true}), 2},
|
||||
"one fenced": {fencedAs(PromotionCandidateEvidence{ReplicaID: "r2", Ready: true, Floor: 2, TableValid: true}), 0},
|
||||
// Empty means evidence read on a present, valid table at end 0: an
|
||||
// answer whose read failed (no table reported) proves nothing.
|
||||
"both at end 0, one read failed": {fencedAs(PromotionCandidateEvidence{ReplicaID: "r2", Ready: true, Floor: 2, TableValid: true}, PromotionCandidateEvidence{ReplicaID: "r3", Ready: true, Floor: 2}), 0},
|
||||
} {
|
||||
t.Run(name, func(t *testing.T) {
|
||||
h := newTestMasterWithControllerConfig(t, t.TempDir(), authority.TopologyControllerConfig{ExpectedSlotsPerVolume: 3})
|
||||
|
||||
Reference in new issue
Block a user