From 7f6c52a9ee98499a59e70c3760bb2d425cb4dc4b 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 0000000000..b5ded20a47 --- /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 3bb513fa0f..80a00e53f0 100644 --- a/go.mod +++ b/go.mod @@ -53,7 +53,7 @@ require ( github.com/hashicorp/hcp-sdk-go v0.23.1-0.20220921131124-49168300a7dc github.com/hashicorp/hil v0.0.0-20200423225030-a18a1cd20038 github.com/hashicorp/memberlist v0.5.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.1 diff --git a/go.sum b/go.sum index 997d179ec8..2a15355f37 100644 --- a/go.sum +++ b/go.sum @@ -518,8 +518,8 @@ github.com/hashicorp/net-rpc-msgpackrpc v0.0.0-20151116020338-a14192a58a69/go.mo 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=