From 32587f7111c44a2109c65d1a54c5460a0b5a75ce Mon Sep 17 00:00:00 2001 From: Dhia Ayachi Date: Wed, 12 Oct 2022 07:51:52 -0500 Subject: [PATCH] bump raft version to v1.3.11 (#14897) * bump raft version to v1.3.11 * Add change log * fix go.sum --- .changelog/14897.txt | 11 +++++++++++ go.mod | 2 +- go.sum | 4 ++-- 3 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 .changelog/14897.txt diff --git a/.changelog/14897.txt b/.changelog/14897.txt new file mode 100644 index 000000000000..b5ded20a47b4 --- /dev/null +++ b/.changelog/14897.txt @@ -0,0 +1,11 @@ +```release-note:improvement +raft: Fix a race condition where the snapshot file is closed without being opened +``` + +```release-note:improvement +raft: Allow nonVoter to initiate an election to avoid having an election infinite loop when a Voter is converted to NonVoter +``` + +```release-note:improvement +raft: Cap maximum grpc wait time when heartbeating to heartbeatTimeout/2 +``` diff --git a/go.mod b/go.mod index 728b18ba04c3..2a71d162718d 100644 --- a/go.mod +++ b/go.mod @@ -49,7 +49,7 @@ require ( github.com/hashicorp/hcl v1.0.0 github.com/hashicorp/hil v0.0.0-20200423225030-a18a1cd20038 github.com/hashicorp/memberlist v0.4.0 - github.com/hashicorp/raft v1.3.9 + github.com/hashicorp/raft v1.3.11 github.com/hashicorp/raft-autopilot v0.1.6 github.com/hashicorp/raft-boltdb/v2 v2.2.2 github.com/hashicorp/serf v0.10.0 diff --git a/go.sum b/go.sum index c445af0e8fca..1eb1ee8fb53d 100644 --- a/go.sum +++ b/go.sum @@ -370,8 +370,8 @@ github.com/hashicorp/memberlist v0.4.0/go.mod h1:yvyXLpo0QaGE59Y7hDTsTzDD25JYBZ4 github.com/hashicorp/raft v1.1.0/go.mod h1:4Ak7FSPnuvmb0GV6vgIAJ4vYT4bek9bb6Q+7HVbyzqM= github.com/hashicorp/raft v1.1.1/go.mod h1:vPAJM8Asw6u8LxC3eJCUZmRP/E4QmUGE1R7g7k8sG/8= github.com/hashicorp/raft v1.2.0/go.mod h1:vPAJM8Asw6u8LxC3eJCUZmRP/E4QmUGE1R7g7k8sG/8= -github.com/hashicorp/raft v1.3.9 h1:9yuo1aR0bFTr1cw7pj3S2Bk6MhJCsnr2NAxvIBrP2x4= -github.com/hashicorp/raft v1.3.9/go.mod h1:4Ak7FSPnuvmb0GV6vgIAJ4vYT4bek9bb6Q+7HVbyzqM= +github.com/hashicorp/raft v1.3.11 h1:p3v6gf6l3S797NnK5av3HcczOC1T5CLoaRvg0g9ys4A= +github.com/hashicorp/raft v1.3.11/go.mod h1:J8naEwc6XaaCfts7+28whSeRvCqTd6e20BlCU3LtEO4= github.com/hashicorp/raft-autopilot v0.1.6 h1:C1q3RNF2FfXNZfHWbvVAu0QixaQK8K5pX4O5lh+9z4I= github.com/hashicorp/raft-autopilot v0.1.6/go.mod h1:Af4jZBwaNOI+tXfIqIdbcAnh/UyyqIMj/pOISIfhArw= github.com/hashicorp/raft-boltdb v0.0.0-20171010151810-6e5ba93211ea/go.mod h1:pNv7Wc3ycL6F5oOWn+tPGo2gWD4a5X+yp/ntwdKLjRk=