From 3fc35e04abac6463fbc85892570443e66c13f285 Mon Sep 17 00:00:00 2001 From: Fedor Partanskiy Date: Mon, 8 Jan 2024 17:55:46 +0300 Subject: [PATCH] find and fix error Signed-off-by: Fedor Partanskiy --- integration/raft/config_test.go | 2 +- orderer/common/follower/follower_chain.go | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/integration/raft/config_test.go b/integration/raft/config_test.go index fe66e4459a7..fe1ab7dd6a4 100644 --- a/integration/raft/config_test.go +++ b/integration/raft/config_test.go @@ -1261,7 +1261,7 @@ var _ = Describe("EndToEnd reconfiguration and onboarding", func() { o2 := network.Orderer("orderer2") o3 := network.Orderer("orderer3") - By("Waiting for them to elect a leader") + By("Waiting for them to select a leader") FindLeader(ordererRunners) assertBlockReception(map[string]int{ diff --git a/orderer/common/follower/follower_chain.go b/orderer/common/follower/follower_chain.go index 1138191e666..e916b4751db 100644 --- a/orderer/common/follower/follower_chain.go +++ b/orderer/common/follower/follower_chain.go @@ -224,7 +224,9 @@ func (c *Chain) Start() { // Halt signals the Chain to stop and waits for the internal go-routine to exit. func (c *Chain) Halt() { + c.logger.Info("PFI03") c.halt() + c.logger.Info("PFI04") <-c.doneChan } @@ -353,7 +355,9 @@ func (c *Chain) pull() error { // Trigger creation of a new consensus.Chain. c.logger.Info("Block pulling finished successfully, going to switch from follower to a consensus.Chain") + c.logger.Info("PFI01") c.halt() + c.logger.Info("PFI02") c.chainCreator.SwitchFollowerToChain(c.ledgerResources.ChannelID()) return nil