mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 02:27:26 +01:00
fix(master): never reassign on a primary that did not answer its status probe
An unknown fact is not a failed one: the unsupported promotion path now moves the line only on the current primary's own not-ready report, like the supported path. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
af8473c561
commit
3aafd4e1f1
1 file changed
+3
-1
@@ -336,7 +336,9 @@ func (h *Host) applyUnsupportedPromotionEvidenceGate(placements []lifecycle.Plac
|
||||
break
|
||||
}
|
||||
}
|
||||
if enabledCandidate && (!result.CurrentKnown || !result.Current.Ready) {
|
||||
// Only a positive not-ready report from the current primary moves the
|
||||
// line. A primary that did not answer is unknown, never failed.
|
||||
if enabledCandidate && result.CurrentKnown && !result.Current.Ready {
|
||||
// Unsupported does not mean the current primary is unhealthy:
|
||||
// a different slot may be stale. Judge the current primary
|
||||
// from its own fresh heartbeat slot, never from placement.
|
||||
|
||||
Reference in new issue
Block a user