mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-06 11:07:31 +01:00
master: the held-ask downgrade replaces v's own process
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
02ccbd700d
commit
d5ab11512e
1 file changed
+5
-4
@@ -484,9 +484,10 @@ func TestEveryVolumeOfAHeartbeatKeepsItsLevel(t *testing.T) {
|
||||
}
|
||||
|
||||
// The queued-ask schedule: a bind is
|
||||
// decided and reaches its publication admission while node-b's only process
|
||||
// reads level 1; it is held there; another node-b process then reports level
|
||||
// 0; released, the same ask is refused by the format check (binary_too_old)
|
||||
// decided and reaches its publication admission while node-b's process for v
|
||||
// reads level 1; it is held there; v's process is then replaced by one that
|
||||
// reports level 0 (the grant reads v's own process, never a sibling's);
|
||||
// released, the same ask is refused by the format check (binary_too_old)
|
||||
// and no line is published. The control, with no downgrade, publishes.
|
||||
func TestAHeldAskIsRefusedAfterItsServerTurnsOutOld(t *testing.T) {
|
||||
for _, downgrade := range []bool{true, false} {
|
||||
@@ -565,7 +566,7 @@ func TestAHeldAskIsRefusedAfterItsServerTurnsOutOld(t *testing.T) {
|
||||
t.Fatal("the bind never reached its publication admission")
|
||||
}
|
||||
if downgrade {
|
||||
_ = r.fgProcessHeartbeat("node-b", "old-proc", "other", 0) // refused at level 1, but its level is recorded
|
||||
_ = r.fgProcessHeartbeat("node-b", "old-proc", "v", 0) // v's own process, now old: refused at level 1, but its level is recorded
|
||||
}
|
||||
releaseHold()
|
||||
var got error
|
||||
|
||||
Reference in new issue
Block a user