Skip to content

Commit 7d8bed5

Browse files
authored
2.5 bump go.etcd.io/etcd to v3.6.10 (#5463)
Signed-off-by: Fedor Partanskiy <fredprtnsk@gmail.com>
1 parent 2ab85f9 commit 7d8bed5

256 files changed

Lines changed: 84451 additions & 48159 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

go.mod

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,18 @@ require (
3131
github.com/pkg/errors v0.9.1
3232
github.com/prometheus/client_golang v1.20.5
3333
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475
34-
github.com/spf13/cobra v1.8.1
35-
github.com/spf13/pflag v1.0.6
34+
github.com/spf13/cobra v1.10.2
35+
github.com/spf13/pflag v1.0.10
3636
github.com/spf13/viper v1.7.0
3737
github.com/stretchr/testify v1.11.1 // includes ErrorContains
3838
github.com/sykesm/zap-logfmt v0.0.4
3939
github.com/syndtr/goleveldb v1.0.1-0.20210305035536-64b5b1c73954
4040
github.com/tedsuo/ifrit v0.0.0-20220120221754-dd274de71113
41-
go.etcd.io/etcd/client/pkg/v3 v3.5.14
42-
go.etcd.io/etcd/raft/v3 v3.5.9
43-
go.etcd.io/etcd/server/v3 v3.5.9
41+
go.etcd.io/etcd/client/pkg/v3 v3.6.10
42+
go.etcd.io/etcd/server/v3 v3.6.10
43+
go.etcd.io/raft/v3 v3.6.0
4444
go.uber.org/zap v1.27.0
45-
golang.org/x/tools v0.40.0
45+
golang.org/x/tools v0.42.0
4646
google.golang.org/grpc v1.79.3
4747
google.golang.org/protobuf v1.36.11
4848
gopkg.in/alecthomas/kingpin.v2 v2.2.6
@@ -65,10 +65,11 @@ require (
6565
github.com/consensys/gnark-crypto v0.19.2 // indirect
6666
github.com/containerd/errdefs v1.0.0 // indirect
6767
github.com/containerd/errdefs/pkg v0.3.0 // indirect
68+
github.com/coreos/go-semver v0.3.1 // indirect
6869
github.com/distribution/reference v0.6.0 // indirect
6970
github.com/docker/go-connections v0.6.0 // indirect
7071
github.com/docker/go-units v0.5.0 // indirect
71-
github.com/dustin/go-humanize v1.0.0 // indirect
72+
github.com/dustin/go-humanize v1.0.1 // indirect
7273
github.com/eapache/go-resiliency v1.2.0 // indirect
7374
github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21 // indirect
7475
github.com/eapache/queue v1.1.0 // indirect
@@ -83,6 +84,7 @@ require (
8384
github.com/golang/snappy v0.0.4 // indirect
8485
github.com/google/go-cmp v0.7.0 // indirect
8586
github.com/google/pprof v0.0.0-20250403155104-27863c87afa6 // indirect
87+
github.com/grpc-ecosystem/grpc-gateway/v2 v2.26.3 // indirect
8688
github.com/hashicorp/hcl v1.0.0 // indirect
8789
github.com/hyperledger/fabric-amcl v0.0.0-20230602173724-9e02669dceb2 // indirect
8890
github.com/inconshreveable/mousetrap v1.1.0 // indirect
@@ -99,29 +101,32 @@ require (
99101
github.com/pierrec/lz4 v2.6.0+incompatible // indirect
100102
github.com/pmezard/go-difflib v1.0.0 // indirect
101103
github.com/prometheus/client_model v0.6.1 // indirect
102-
github.com/prometheus/common v0.55.0 // indirect
104+
github.com/prometheus/common v0.62.0 // indirect
103105
github.com/prometheus/procfs v0.15.1 // indirect
104106
github.com/rogpeppe/go-internal v1.14.1 // indirect
105107
github.com/spf13/afero v1.3.1 // indirect
106108
github.com/spf13/cast v1.3.1 // indirect
107109
github.com/spf13/jwalterweatherman v1.1.0 // indirect
108110
github.com/stretchr/objx v0.5.2 // indirect
109111
github.com/subosito/gotenv v1.2.0 // indirect
110-
go.etcd.io/etcd/pkg/v3 v3.5.14 // indirect
112+
go.etcd.io/etcd/api/v3 v3.6.10 // indirect
113+
go.etcd.io/etcd/pkg/v3 v3.6.10 // indirect
111114
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
112115
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.60.0 // indirect
113-
go.opentelemetry.io/otel v1.39.0 // indirect
114-
go.opentelemetry.io/otel/metric v1.39.0 // indirect
115-
go.opentelemetry.io/otel/trace v1.39.0 // indirect
116+
go.opentelemetry.io/otel v1.40.0 // indirect
117+
go.opentelemetry.io/otel/metric v1.40.0 // indirect
118+
go.opentelemetry.io/otel/sdk/metric v1.40.0 // indirect
119+
go.opentelemetry.io/otel/trace v1.40.0 // indirect
116120
go.uber.org/multierr v1.11.0 // indirect
117121
go.yaml.in/yaml/v3 v3.0.4 // indirect
118-
golang.org/x/crypto v0.47.0 // indirect
119-
golang.org/x/mod v0.31.0 // indirect
120-
golang.org/x/net v0.49.0 // indirect
121-
golang.org/x/sync v0.19.0 // indirect
122-
golang.org/x/sys v0.40.0 // indirect
123-
golang.org/x/text v0.33.0 // indirect
124-
google.golang.org/genproto/googleapis/rpc v0.0.0-20251202230838-ff82c1b0f217 // indirect
122+
golang.org/x/crypto v0.48.0 // indirect
123+
golang.org/x/mod v0.33.0 // indirect
124+
golang.org/x/net v0.51.0 // indirect
125+
golang.org/x/sync v0.20.0 // indirect
126+
golang.org/x/sys v0.41.0 // indirect
127+
golang.org/x/text v0.35.0 // indirect
128+
google.golang.org/genproto/googleapis/api v0.0.0-20260420184626-e10c466a9529 // indirect
129+
google.golang.org/genproto/googleapis/rpc v0.0.0-20260414002931-afd174a4e478 // indirect
125130
gopkg.in/ini.v1 v1.51.0 // indirect
126131
gopkg.in/yaml.v3 v3.0.1 // indirect
127132
)

go.sum

Lines changed: 52 additions & 44 deletions
Large diffs are not rendered by default.

orderer/consensus/etcdraft/chain.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ import (
2828
"github.com/hyperledger/fabric/orderer/consensus"
2929
"github.com/hyperledger/fabric/protoutil"
3030
"github.com/pkg/errors"
31-
"go.etcd.io/etcd/raft/v3"
32-
"go.etcd.io/etcd/raft/v3/raftpb"
33-
"go.etcd.io/etcd/server/v3/wal"
31+
"go.etcd.io/etcd/server/v3/storage/wal"
32+
"go.etcd.io/raft/v3"
33+
"go.etcd.io/raft/v3/raftpb"
3434
)
3535

3636
const (

orderer/consensus/etcdraft/chain_test.go

Lines changed: 32 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ import (
3838
. "github.com/onsi/gomega"
3939
"github.com/onsi/gomega/types"
4040
"github.com/pkg/errors"
41-
raft "go.etcd.io/etcd/raft/v3"
42-
"go.etcd.io/etcd/raft/v3/raftpb"
41+
raft "go.etcd.io/raft/v3"
42+
"go.etcd.io/raft/v3/raftpb"
4343
"go.uber.org/zap"
4444
)
4545

@@ -152,7 +152,7 @@ var _ = Describe("Chain", func() {
152152
walDir = path.Join(dataDir, "wal")
153153
snapDir = path.Join(dataDir, "snapshot")
154154

155-
observeC = make(chan raft.SoftState, 1)
155+
observeC = make(chan raft.SoftState, 3)
156156

157157
support = &consensusmocks.FakeConsenterSupport{}
158158
support.ChannelIDReturns(channelID)
@@ -377,7 +377,7 @@ var _ = Describe("Chain", func() {
377377
// 2. a SoftState and an associated increase of term in the HardState due to the node being elected leader
378378
// 3. a block being committed
379379
// The duration being emitted is zero since we don't tick the fake clock during this time
380-
Expect(fakeFields.fakeDataPersistDuration.ObserveCallCount()).Should(Equal(3))
380+
Expect(fakeFields.fakeDataPersistDuration.ObserveCallCount()).Should(BeNumerically(">=", 3))
381381
Expect(fakeFields.fakeDataPersistDuration.ObserveArgsForCall(0)).Should(Equal(float64(0)))
382382
Expect(fakeFields.fakeDataPersistDuration.ObserveArgsForCall(1)).Should(Equal(float64(0)))
383383
Expect(fakeFields.fakeDataPersistDuration.ObserveArgsForCall(2)).Should(Equal(float64(0)))
@@ -395,7 +395,7 @@ var _ = Describe("Chain", func() {
395395
Eventually(support.WriteBlockCallCount, LongEventualTimeout).Should(Equal(2))
396396
Expect(fakeFields.fakeCommittedBlockNumber.SetCallCount()).Should(Equal(3)) // incl. initial call
397397
Expect(fakeFields.fakeCommittedBlockNumber.SetArgsForCall(2)).Should(Equal(float64(2)))
398-
Expect(fakeFields.fakeDataPersistDuration.ObserveCallCount()).Should(Equal(4))
398+
Expect(fakeFields.fakeDataPersistDuration.ObserveCallCount()).Should(BeNumerically(">=", 4))
399399
Expect(fakeFields.fakeDataPersistDuration.ObserveArgsForCall(3)).Should(Equal(float64(0)))
400400
})
401401

@@ -769,7 +769,7 @@ var _ = Describe("Chain", func() {
769769
})
770770

771771
It("replays blocks from committed entries", func() {
772-
c := newChain(10*time.Second, channelID, dataDir, 1, raftMetadata, consenters, cryptoProvider, nil, nil)
772+
c := newChain(10*time.Second, channelID, dataDir, 1, raftMetadata, consenters, cryptoProvider, nil, nil, logger)
773773
c.init()
774774
c.Start()
775775
defer c.Halt()
@@ -798,7 +798,7 @@ var _ = Describe("Chain", func() {
798798

799799
It("only replays blocks after Applied index", func() {
800800
raftMetadata.RaftIndex = m1.RaftIndex
801-
c := newChain(10*time.Second, channelID, dataDir, 1, raftMetadata, consenters, cryptoProvider, nil, nil)
801+
c := newChain(10*time.Second, channelID, dataDir, 1, raftMetadata, consenters, cryptoProvider, nil, nil, logger)
802802
c.support.WriteBlock(support.WriteBlockArgsForCall(0))
803803

804804
c.init()
@@ -824,7 +824,7 @@ var _ = Describe("Chain", func() {
824824

825825
It("does not replay any block if already in sync", func() {
826826
raftMetadata.RaftIndex = m2.RaftIndex
827-
c := newChain(10*time.Second, channelID, dataDir, 1, raftMetadata, consenters, cryptoProvider, nil, nil)
827+
c := newChain(10*time.Second, channelID, dataDir, 1, raftMetadata, consenters, cryptoProvider, nil, nil, logger)
828828
c.init()
829829
c.Start()
830830
defer c.Halt()
@@ -956,7 +956,7 @@ var _ = Describe("Chain", func() {
956956

957957
chain.Halt()
958958

959-
c := newChain(10*time.Second, channelID, dataDir, 1, raftMetadata, consenters, cryptoProvider, nil, nil)
959+
c := newChain(10*time.Second, channelID, dataDir, 1, raftMetadata, consenters, cryptoProvider, nil, nil, logger)
960960
c.init()
961961

962962
signal := make(chan struct{})
@@ -1008,7 +1008,7 @@ var _ = Describe("Chain", func() {
10081008

10091009
chain.Halt()
10101010

1011-
c := newChain(10*time.Second, channelID, dataDir, 1, raftMetadata, consenters, cryptoProvider, nil, nil)
1011+
c := newChain(10*time.Second, channelID, dataDir, 1, raftMetadata, consenters, cryptoProvider, nil, nil, logger)
10121012
c.init()
10131013
c.Start()
10141014
defer c.Halt()
@@ -1043,7 +1043,7 @@ var _ = Describe("Chain", func() {
10431043
chain.Halt()
10441044

10451045
raftMetadata.RaftIndex = m.RaftIndex
1046-
c := newChain(10*time.Second, channelID, dataDir, 1, raftMetadata, consenters, cryptoProvider, nil, nil)
1046+
c := newChain(10*time.Second, channelID, dataDir, 1, raftMetadata, consenters, cryptoProvider, nil, nil, logger)
10471047
c.opts.SnapshotIntervalSize = 1
10481048

10491049
c.init()
@@ -1072,7 +1072,7 @@ var _ = Describe("Chain", func() {
10721072
m = &raftprotos.BlockMetadata{}
10731073
proto.Unmarshal(metadata, m)
10741074
raftMetadata.RaftIndex = m.RaftIndex
1075-
cx := newChain(10*time.Second, channelID, dataDir, 1, raftMetadata, consenters, cryptoProvider, nil, nil)
1075+
cx := newChain(10*time.Second, channelID, dataDir, 1, raftMetadata, consenters, cryptoProvider, nil, nil, logger)
10761076

10771077
cx.init()
10781078
cx.Start()
@@ -1136,7 +1136,7 @@ var _ = Describe("Chain", func() {
11361136
chain.Halt()
11371137

11381138
raftMetadata.RaftIndex = m.RaftIndex
1139-
c := newChain(10*time.Second, channelID, dataDir, 1, raftMetadata, consenters, cryptoProvider, nil, nil)
1139+
c := newChain(10*time.Second, channelID, dataDir, 1, raftMetadata, consenters, cryptoProvider, nil, nil, logger)
11401140
cnt := support.WriteBlockCallCount()
11411141
for i := range cnt {
11421142
c.support.WriteBlock(support.WriteBlockArgsForCall(i))
@@ -1194,7 +1194,7 @@ var _ = Describe("Chain", func() {
11941194
chain.Halt()
11951195

11961196
raftMetadata.RaftIndex = m.RaftIndex
1197-
c := newChain(10*time.Second, channelID, dataDir, 1, raftMetadata, consenters, cryptoProvider, nil, nil)
1197+
c := newChain(10*time.Second, channelID, dataDir, 1, raftMetadata, consenters, cryptoProvider, nil, nil, logger)
11981198
// replay block 1&2
11991199
c.support.WriteBlock(support.WriteBlockArgsForCall(0))
12001200
c.support.WriteBlock(support.WriteBlockArgsForCall(1))
@@ -1241,7 +1241,7 @@ var _ = Describe("Chain", func() {
12411241
chain.Halt()
12421242

12431243
raftMetadata.RaftIndex = m.RaftIndex
1244-
c1 := newChain(10*time.Second, channelID, dataDir, 1, raftMetadata, consenters, cryptoProvider, nil, nil)
1244+
c1 := newChain(10*time.Second, channelID, dataDir, 1, raftMetadata, consenters, cryptoProvider, nil, nil, logger)
12451245
cnt := support.WriteBlockCallCount()
12461246
for i := range cnt {
12471247
c1.support.WriteBlock(support.WriteBlockArgsForCall(i))
@@ -1433,7 +1433,7 @@ var _ = Describe("Chain", func() {
14331433
configEnv = newConfigEnv(channelID, common.HeaderType_CONFIG, newConfigUpdateEnv(channelID, nil, value))
14341434

14351435
fakeHaltCallbacker = &mocks.HaltCallbacker{}
1436-
network = createNetwork(timeout, channelID, dataDir, raftMetadata, consenters, cryptoProvider, tlsCA, fakeHaltCallbacker.HaltCallback)
1436+
network = createNetwork(timeout, channelID, dataDir, raftMetadata, consenters, cryptoProvider, tlsCA, fakeHaltCallbacker.HaltCallback, logger)
14371437
c1, c2 = network.chains[1], network.chains[2]
14381438
c1.cutter.CutNext = true
14391439
network.init()
@@ -1652,7 +1652,7 @@ var _ = Describe("Chain", func() {
16521652
},
16531653
}
16541654

1655-
network = createNetwork(timeout, channelID, dataDir, raftMetadata, consenters, cryptoProvider, tlsCA, nil)
1655+
network = createNetwork(timeout, channelID, dataDir, raftMetadata, consenters, cryptoProvider, tlsCA, nil, logger)
16561656
c1 = network.chains[1]
16571657
c2 = network.chains[2]
16581658
c3 = network.chains[3]
@@ -2020,7 +2020,7 @@ var _ = Describe("Chain", func() {
20202020
raftmeta, err := etcdraft.ReadBlockMetadata(meta, nil)
20212021
Expect(err).NotTo(HaveOccurred())
20222022

2023-
c4 := newChain(timeout, channelID, dataDir, 4, raftmeta, consenters, cryptoProvider, nil, nil)
2023+
c4 := newChain(timeout, channelID, dataDir, 4, raftmeta, consenters, cryptoProvider, nil, nil, logger)
20242024
// if we join a node to existing network, it MUST already obtained blocks
20252025
// till the config block that adds this node to cluster.
20262026
c4.support.WriteBlock(c1.support.WriteBlockArgsForCall(0))
@@ -2143,7 +2143,7 @@ var _ = Describe("Chain", func() {
21432143
raftmeta, err := etcdraft.ReadBlockMetadata(meta, nil)
21442144
Expect(err).NotTo(HaveOccurred())
21452145

2146-
c4 := newChain(timeout, channelID, dataDir, 4, raftmeta, consenters, cryptoProvider, nil, nil)
2146+
c4 := newChain(timeout, channelID, dataDir, 4, raftmeta, consenters, cryptoProvider, nil, nil, logger)
21472147
// if we join a node to existing network, it MUST already obtained blocks
21482148
// till the config block that adds this node to cluster.
21492149
c4.support.WriteBlock(c1.support.WriteBlockArgsForCall(0))
@@ -2218,7 +2218,7 @@ var _ = Describe("Chain", func() {
22182218
raftmeta, err := etcdraft.ReadBlockMetadata(meta, nil)
22192219
Expect(err).NotTo(HaveOccurred())
22202220

2221-
c4 := newChain(timeout, channelID, dataDir, 4, raftmeta, consenters, cryptoProvider, nil, nil)
2221+
c4 := newChain(timeout, channelID, dataDir, 4, raftmeta, consenters, cryptoProvider, nil, nil, logger)
22222222
// if we join a node to existing network, it MUST already obtained blocks
22232223
// till the config block that adds this node to cluster.
22242224
c4.support.WriteBlock(c1.support.WriteBlockArgsForCall(0))
@@ -2366,7 +2366,7 @@ var _ = Describe("Chain", func() {
23662366
raftmeta, err := etcdraft.ReadBlockMetadata(meta, nil)
23672367
Expect(err).NotTo(HaveOccurred())
23682368

2369-
c4 := newChain(timeout, channelID, dataDir, 4, raftmeta, consenters, cryptoProvider, nil, nil)
2369+
c4 := newChain(timeout, channelID, dataDir, 4, raftmeta, consenters, cryptoProvider, nil, nil, logger)
23702370
// if we join a node to existing network, it MUST already obtained blocks
23712371
// till the config block that adds this node to cluster.
23722372
c4.support.WriteBlock(c1.support.WriteBlockArgsForCall(0))
@@ -3380,6 +3380,7 @@ func newChain(
33803380
cryptoProvider bccsp.BCCSP,
33813381
support *consensusmocks.FakeConsenterSupport,
33823382
haltCallback func(),
3383+
logger *flogging.FabricLogger,
33833384
) *chain {
33843385
rpc := &mocks.FakeRPC{}
33853386
clock := fakeclock.NewFakeClock(time.Now())
@@ -3399,7 +3400,7 @@ func newChain(
33993400
BlockMetadata: raftMetadata,
34003401
LeaderCheckInterval: 500 * time.Millisecond,
34013402
Consenters: consenters,
3402-
Logger: flogging.NewFabricLogger(zap.NewExample()),
3403+
Logger: logger,
34033404
MemoryStorage: storage,
34043405
WALDir: path.Join(dataDir, "wal"),
34053406
SnapDir: path.Join(dataDir, "snapshot"),
@@ -3416,9 +3417,9 @@ func newChain(
34163417
support.BlockCutterReturns(cutter)
34173418

34183419
// upon leader change, lead is reset to 0 before set to actual
3419-
// new leader, i.e. 1 -> 0 -> 2. Therefore 2 numbers will be
3420-
// sent on this chan, so we need size to be 2
3421-
observe := make(chan raft.SoftState, 2)
3420+
// new leader, i.e. 1 -> 0 -> 2. Therefore 3 numbers will be
3421+
// sent on this chan, so we need size to be 3
3422+
observe := make(chan raft.SoftState, 3)
34223423

34233424
configurator := &mocks.FakeConfigurator{}
34243425
puller := &mocks.FakeBlockPuller{}
@@ -3708,6 +3709,7 @@ func createNetwork(
37083709
cryptoProvider bccsp.BCCSP,
37093710
tlsCA tlsgen.CA,
37103711
haltCallback func(),
3712+
logger *flogging.FabricLogger,
37113713
) *network {
37123714
n := &network{
37133715
chains: make(map[uint64]*chain),
@@ -3725,7 +3727,7 @@ func createNetwork(
37253727
support.SharedConfigReturns(mockOrdererWithBatchTimeout(timeout, nil))
37263728
mockOrdererConfig := mockOrdererWithTLSRootCert(timeout, nil, tlsCA)
37273729
support.SharedConfigReturns(mockOrdererConfig)
3728-
n.addChain(newChain(timeout, channel, dir, nodeID, m, consenters, cryptoProvider, support, haltCallback))
3730+
n.addChain(newChain(timeout, channel, dir, nodeID, m, consenters, cryptoProvider, support, haltCallback, logger))
37293731
}
37303732

37313733
return n
@@ -3870,8 +3872,10 @@ func (n *network) elect(id uint64) {
38703872

38713873
// Send node an artificial MsgTimeoutNow to emulate leadership transfer.
38723874
fmt.Fprintf(GinkgoWriter, "Send artificial MsgTimeoutNow to elect node %d\n", id)
3873-
candidate.Consensus(&orderer.ConsensusRequest{Payload: protoutil.MarshalOrPanic(&raftpb.Message{Type: raftpb.MsgTimeoutNow, To: id})}, 0)
3874-
Eventually(candidate.observe, LongEventualTimeout).Should(Receive(StateEqual(id, raft.StateLeader)))
3875+
Eventually(func() <-chan raft.SoftState {
3876+
candidate.Consensus(&orderer.ConsensusRequest{Payload: protoutil.MarshalOrPanic(&raftpb.Message{Type: raftpb.MsgTimeoutNow, To: id})}, 0)
3877+
return candidate.observe
3878+
}).WithTimeout(LongEventualTimeout).Should(Receive(StateEqual(id, raft.StateLeader)))
38753879

38763880
n.Lock()
38773881
n.leader = id

orderer/consensus/etcdraft/consenter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import (
3030
"github.com/hyperledger/fabric/protoutil"
3131
"github.com/mitchellh/mapstructure"
3232
"github.com/pkg/errors"
33-
"go.etcd.io/etcd/raft/v3"
33+
"go.etcd.io/raft/v3"
3434
)
3535

3636
//go:generate counterfeiter -o mocks/inactive_chain_registry.go --fake-name InactiveChainRegistry . InactiveChainRegistry

orderer/consensus/etcdraft/eviction.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
"github.com/hyperledger/fabric/common/flogging"
1717
"github.com/hyperledger/fabric/orderer/common/cluster"
1818
"github.com/hyperledger/fabric/protoutil"
19-
"go.etcd.io/etcd/raft/v3/raftpb"
19+
"go.etcd.io/raft/v3/raftpb"
2020
)
2121

2222
// PeriodicCheck checks periodically a condition, and reports

orderer/consensus/etcdraft/eviction_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"github.com/onsi/gomega"
2121
"github.com/pkg/errors"
2222
"github.com/stretchr/testify/require"
23-
"go.etcd.io/etcd/raft/v3/raftpb"
23+
"go.etcd.io/raft/v3/raftpb"
2424
"go.uber.org/zap"
2525
"go.uber.org/zap/zapcore"
2626
)

orderer/consensus/etcdraft/membership.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import (
1212
"github.com/golang/protobuf/proto"
1313
"github.com/hyperledger/fabric-protos-go/orderer/etcdraft"
1414
"github.com/pkg/errors"
15-
raft "go.etcd.io/etcd/raft/v3"
16-
"go.etcd.io/etcd/raft/v3/raftpb"
15+
raft "go.etcd.io/raft/v3"
16+
"go.etcd.io/raft/v3/raftpb"
1717
)
1818

1919
// MembershipByCert convert consenters map into set encapsulated by map

orderer/consensus/etcdraft/membership_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
"github.com/hyperledger/fabric/orderer/consensus/etcdraft"
1616
"github.com/hyperledger/fabric/orderer/consensus/etcdraft/mocks"
1717
"github.com/stretchr/testify/require"
18-
"go.etcd.io/etcd/raft/v3/raftpb"
18+
"go.etcd.io/raft/v3/raftpb"
1919
)
2020

2121
func TestQuorumCheck(t *testing.T) {

0 commit comments

Comments
 (0)