Orderer crash when join, unjoin, join with same channel name
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- go
調査の方向性
fabric-samples のテストネットワークとチャネル名 mychannel5 を使って、join、unjoin、join のシーケンスを再現します。まず orderer/common/multichannel/blockwriter.go と orderer/consensus/etcdraft/chain.go から始め、その後、スタックトレースに示されている WAL とブロックハッシュの処理を追跡します。orderer がクラッシュしなくなり、再作成したチャネルのブロックが一貫して追加されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
I was using the test network from fabric samples and when I did the following sequence of steps which caused the orderer to crash
./network.sh up createChannel -ca -c mychannel5
unjoin the channel - I can see from the osnadmin command that the channel is gone
./network.sh up createChannel -ca -c mychannel5
Orderer crashes with the following
2022-02-24 18:27:36.856 UTC 03a6 INFO [blkstorage] newBlockfileMgr -> Getting block information from block storage
2022-02-24 18:27:36.880 UTC 03a7 INFO [orderer.consensus.etcdraft] HandleChain -> EvictionSuspicion not set, defaulting to 10m0s
2022-02-24 18:27:36.881 UTC 03a8 INFO [orderer.consensus.etcdraft] HandleChain -> Without system channel: after eviction Registrar.SwitchToFollower will be called
2022-02-24 18:27:36.881 UTC 03a9 INFO [orderer.consensus.etcdraft] createOrReadWAL -> Found WAL data at path '/var/hyperledger/production/orderer/etcdraft/wal/mychannel5', replaying it channel=mychannel5 node=1
2022-02-24 18:27:36.883 UTC 03aa INFO [orderer.commmon.multichannel] createAsMember -> Joining channel: {mychannel5 consenter active 1}
2022-02-24 18:27:36.889 UTC 03ab INFO [orderer.consensus.etcdraft] Start -> Starting Raft node channel=mychannel5 node=1
2022-02-24 18:27:36.889 UTC 03ac INFO [orderer.common.cluster] Configure -> Entering, channel: mychannel5, nodes: []
2022-02-24 18:27:36.889 UTC 03ad INFO [orderer.common.cluster] Configure -> Exiting
2022-02-24 18:27:36.889 UTC 03ae INFO [orderer.consensus.etcdraft] start -> Restarting raft node channel=mychannel5 node=1
2022-02-24 18:27:36.890 UTC 03af INFO [orderer.consensus.etcdraft] becomeFollower -> 1 became follower at term 2 channel=mychannel5 node=1
2022-02-24 18:27:36.890 UTC 03b0 INFO [orderer.consensus.etcdraft] newRaft -> newRaft 1 [peers: [], term: 2, commit: 4, applied: 0, lastindex: 4, lastterm: 2] channel=mychannel5 node=1
2022-02-24 18:27:36.894 UTC 03b1 INFO [orderer.consensus.etcdraft] apply -> Applied config change to add node 1, current nodes in channel: [1] channel=mychannel5 node=1
2022-02-24 18:27:36.894 UTC 03b2 INFO [orderer.consensus.etcdraft] writeBlock -> Writing block [1] (Raft index: 3) to ledger channel=mychannel5 node=1
2022-02-24 18:27:36.907 UTC 03b3 PANI [orderer.commmon.multichannel] commitBlock -> [channel: mychannel5] Could not append block: unexpected Previous block hash. Expected PreviousHash = [2c7c76dedc0a97465431b1c404b44b586b355f28091ec26da5f519b57eaa07cf], PreviousHash referred in the latest block= [eae8b0fd832dada16ab08cae33de74b01f2ec5956cee6c27969bf960fc4f59bc]
panic: [channel: mychannel5] Could not append block: unexpected Previous block hash. Expected PreviousHash = [2c7c76dedc0a97465431b1c404b44b586b355f28091ec26da5f519b57eaa07cf], PreviousHash referred in the latest block= [eae8b0fd832dada16ab08cae33de74b01f2ec5956cee6c27969bf960fc4f59bc]
goroutine 11774 [running]:
go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc000548000, {0x0, 0x0, 0x0})
/go/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore/entry.go:234 +0x499
go.uber.org/zap.(*SugaredLogger).log(0xc0001a8168, 0x4, {0xf60723, 0x1}, {0xc00015f530, 0x10000000046d41a, 0x1}, {0x0, 0x0, 0x0})
/go/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:234 +0x13b
go.uber.org/zap.(*SugaredLogger).Panicf(...)
/go/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:159
github.com/hyperledger/fabric/common/flogging.(*FabricLogger).Panicf(...)
/go/src/github.com/hyperledger/fabric/common/flogging/zap.go:74
github.com/hyperledger/fabric/orderer/common/multichannel.(*BlockWriter).commitBlock(0xc00125a540, {0xc00110fc36, 0x7, 0x7})
/go/src/github.com/hyperledger/fabric/orderer/common/multichannel/blockwriter.go:203 +0x159
github.com/hyperledger/fabric/orderer/common/multichannel.(*BlockWriter).WriteBlockSync(0xc000e7ea00, 0xc00123b2d0, {0xc00110fc36, 0x113, 0x0})
/go/src/github.com/hyperledger/fabric/orderer/common/multichannel/blockwriter.go:192 +0xeb
github.com/hyperledger/fabric/orderer/common/multichannel.(*BlockWriter).WriteConfigBlock(0xc00125a540, 0xc000f4e450, {0xc00110fc36, 0x7, 0x7})
/go/src/github.com/hyperledger/fabric/orderer/common/multichannel/blockwriter.go:159 +0x81f
github.com/hyperledger/fabric/orderer/consensus/etcdraft.(*Chain).writeConfigBlock(0xc0000bcb00, 0x0, 0x3)
/go/src/github.com/hyperledger/fabric/orderer/consensus/etcdraft/chain.go:1259 +0x303
github.com/hyperledger/fabric/orderer/consensus/etcdraft.(*Chain).writeBlock(0xc0000bcb00, 0xc000cf5940, 0x3)
/go/src/github.com/hyperledger/fabric/orderer/consensus/etcdraft/chain.go:873 +0x30d
github.com/hyperledger/fabric/orderer/consensus/etcdraft.(*Chain).apply(0xc0000bcb00, {0xc001200ac8, 0x4, 0x0})
/go/src/github.com/hyperledger/fabric/orderer/consensus/etcdraft/chain.go:1077 +0x2d9
github.com/hyperledger/fabric/orderer/consensus/etcdraft.(*Chain).run(0xc0000bcb00)
/go/src/github.com/hyperledger/fabric/orderer/consensus/etcdraft/chain.go:781 +0xaf3
created by github.com/hyperledger/fabric/orderer/consensus/etcdraft.(*Chain).Start
/go/src/github.com/hyperledger/fabric/orderer/consensus/etcdraft/chain.go:368 +0x2af
Is this a potential Fabric issue with orderers or samples? If this turns out to be an orderer issues I can open the issue on Fabric repo.
- 主要言語
- Go
- スター
- 3k
- フォーク
- 3.5k
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
hyperledger/fabric-samples のほかの issue
-
Inconsistent DELAY handling causes "sleep: missing operand" in cc invoke/query flows対応中かも @ayushHardeniya が 211 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
hyperledger/fabric-samples#1411 ·
-
Bug: packageCC.sh fails to calculate Package ID when CC_PACKAGE_ONLY is true対応中かも @eshaanag が 102 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
hyperledger/fabric-samples#1404 ·
-
Improve documentation to highlight GetHistoryForKey support in asset-transfer-ledger-queries対応中かも @SurbhiAgarwal1 が 231 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
hyperledger/fabric-samples#1233 · コメント 3 件 ·
-
Go ERC-20 sample rejects zero-value Transfer and TransferFrom対応中かも @RaphaelFakhri が 26 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
hyperledger/fabric-samples#1457 ·
-
rest-api-typescript: migrate off bullmq v1 to clear the uuid advisory対応中かも @ryjones が 83 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
hyperledger/fabric-samples#1449 · コメント 2 件 ·
hyperledger/fabric-samples の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
prime-radiant-inc/evener#8066 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 60/100
slavakurilyak/awesome-ai-agents#1100 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
hyperledger/SmartBFT#803 ·
メンテナーはふだん 1 日以内に返信
-
Craft Agents: magpie's models are written without supportsThinking, so every model shows thinkingオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100