-
- Downloads
[FAB-13750] Detect eviction from channel and halt
This change set adds logic in the etcdraft chain that detects
that the node is evicted from the channel, even if it was
disconnected from the cluster while it was evicted.
If a node fails sending to other nodes a consensus message,
it starts suspecting that something is amiss.
It then tries to pull the latest config block, and see
if it is in the channel or not.
If it is not, it:
1) Halts the chain
2) Pulls all blocks until the block that evicts
the node.
Change-Id: Ic3526d834fbef515119bb899fe62d30fdcf53267
Signed-off-by:
yacovm <yacovm@il.ibm.com>
Showing
- integration/e2e/etcdraft_reconfig_test.go 231 additions, 6 deletionsintegration/e2e/etcdraft_reconfig_test.go
- integration/nwo/orderer_template.go 1 addition, 0 deletionsintegration/nwo/orderer_template.go
- orderer/common/cluster/replication.go 21 additions, 12 deletionsorderer/common/cluster/replication.go
- orderer/consensus/etcdraft/chain.go 42 additions, 2 deletionsorderer/consensus/etcdraft/chain.go
- orderer/consensus/etcdraft/chain_test.go 9 additions, 4 deletionsorderer/consensus/etcdraft/chain_test.go
- orderer/consensus/etcdraft/consenter.go 23 additions, 6 deletionsorderer/consensus/etcdraft/consenter.go
- orderer/consensus/etcdraft/consenter_test.go 12 additions, 1 deletionorderer/consensus/etcdraft/consenter_test.go
- orderer/consensus/etcdraft/mocks/mock_blockpuller.go 56 additions, 0 deletionsorderer/consensus/etcdraft/mocks/mock_blockpuller.go
- orderer/consensus/etcdraft/util.go 128 additions, 2 deletionsorderer/consensus/etcdraft/util.go
- orderer/consensus/etcdraft/util_test.go 248 additions, 0 deletionsorderer/consensus/etcdraft/util_test.go
- sampleconfig/orderer.yaml 7 additions, 0 deletionssampleconfig/orderer.yaml
Loading
Please register or sign in to comment