From 1c4fe61fcd0be7ce911b0311840eeab452fbd88e Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Fri, 6 Nov 2026 15:22:06 -0800 Subject: [PATCH] master: stop the resumed single-master leader from checking quorum every 1 ms (#12463) * deps: bump seaweedfs/raft so the leader quorum check follows the election timeout A single master resuming raft state self-elects on a 1 ms election timeout and restores the configured one afterwards, but the leader kept running its quorum check every 1 ms for the rest of the process. The raft change re-arms that check from the current timeout. Co-Authored-By: Claude Opus 5.5 * deps: bump seaweedfs/raft to the raft PR head with the extended test Co-Authored-By: Claude Opus 5.5 * deps: bump seaweedfs/raft for the non-positive election timeout guard Co-Authored-By: Claude Opus 5.5 * deps: bump seaweedfs/raft so a timeout change re-arms the leader quorum check Co-Authored-By: Claude Opus 5.5 * deps: pin seaweedfs/raft v1.2.4 Co-Authored-By: Claude Opus 5.5 --------- Co-authored-by: Claude Opus 5.5 --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 58f86cc1f3..c0f109296d 100644 --- a/go.mod +++ b/go.mod @@ -65,7 +65,7 @@ require ( github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect github.com/seaweedfs/goexif v1.0.3 - github.com/seaweedfs/raft v1.2.3 + github.com/seaweedfs/raft v1.2.4 github.com/sirupsen/logrus v1.9.4 // indirect github.com/spf13/afero v1.15.0 // indirect github.com/spf13/cast v1.10.0 // indirect diff --git a/go.sum b/go.sum index b0230e59ab..5e23effadd 100644 --- a/go.sum +++ b/go.sum @@ -1104,8 +1104,8 @@ github.com/seaweedfs/go-fuse/v2 v2.9.4 h1:ACyloiuopdhRSjdLLeSWbsVaemMPskORaRF01T github.com/seaweedfs/go-fuse/v2 v2.9.4/go.mod h1:zABdmWEa6A0bwaBeEOBUeUkGIZlxUhcdv+V1Dcc/U/I= github.com/seaweedfs/goexif v1.0.3 h1:ve/OjI7dxPW8X9YQsv3JuVMaxEyF9Rvfd04ouL+Bz30= github.com/seaweedfs/goexif v1.0.3/go.mod h1:Oni780Z236sXpIQzk1XoJlTwqrJ02smEin9zQeff7Fk= -github.com/seaweedfs/raft v1.2.3 h1:/NMrdhztjx8ojeu+aAPa2GmuVShQXp8YwmNmsMPU63E= -github.com/seaweedfs/raft v1.2.3/go.mod h1:fgs/rAVEzjQ7e04XMzG3eJhwZZRmBW+2uRtjakeCGeU= +github.com/seaweedfs/raft v1.2.4 h1:lEBQ9seDSGrJNs2WitMgfYpaDxLgh9qukm1IJTEV1hk= +github.com/seaweedfs/raft v1.2.4/go.mod h1:fgs/rAVEzjQ7e04XMzG3eJhwZZRmBW+2uRtjakeCGeU= github.com/secure-systems-lab/go-securesystemslib v0.11.0 h1:iuCR9kcMFD4QurdKrGvPLoKZLv9YvwPYVr0473BdtFs= github.com/secure-systems-lab/go-securesystemslib v0.11.0/go.mod h1:+PMOTjUGwHj2vcZ+TFKlb1tXRbrdWE1LYDT5i9JC80Q= github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo=