jmeter单线程上链,手动关闭虚拟机(模拟断电),节点无法启动
【问题分类】
- bug
- P2P网络相关(包含libp2p,liquid)
- 链账户身份与权限相关(证书问题、public、多签投票问题)
- 核心交易引擎相关(交易池、DAG)
- 共识相关
- 智能合约相关
- 存储相关
- SDK相关
- 长安链CMC工具
- 长安链管理台
- 长安链浏览器
- 长安链合约IDE
- 长安链web签名插件
- 跨链相关
- 轻节点相关
- 隐私计算相关
- 密码学相关
- 环境依赖
- 其他补充:
【问题描述】(请对问题进行描述,方便定位问题)
具体步骤如下:
- 使用.prepare.sh 4 1 和 ./build_release.sh生成部署包,只用到org1的chainmaker-v2.3.2-wx-org1.chainmaker.org
- 修改chainmaker.yml的net.seeds,只保留org1的节点,启动Docker_GO
seeds:
- "/ip4/127.0.0.1/tcp/11301/p2p/Qmemp4EE1GzJmXqNiZXvB7sQBfhdRiBPkL6DSr78YgasQx"
vm:
# Golang runtime in docker container
go:
# Enable docker go virtual machine, default: false
enable: true
- 修改bc1.yml的consensus.nodes和trust_roots, 只保留org1
consensus:
# Consensus type
# 0-SOLO, 1-TBFT, 3-MAXBFT, 4-RAFT, 5-DPOS, 6-ABFT
type: 1
# Consensus node list
nodes:
# Each org has one or more consensus nodes.
# We use p2p node id to represent nodes here.
- org_id: "wx-org1.chainmaker.org"
node_id:
- "Qmemp4EE1GzJmXqNiZXvB7sQBfhdRiBPkL6DSr78YgasQx"
trust_roots:
- org_id: "wx-org1.chainmaker.org"
root:
- "../config/wx-org1.chainmaker.org/certs/ca/wx-org1.chainmaker.org/ca.crt"
- 启动org1的共识节点
sh start.sh -f full
- 部署Docker_GO的合约和上链接口
- 使用Jmeter单线程调用上链接口
- 模拟断电,此时关闭虚拟机
- 开启虚拟机,启动org1的共识节点
- 查看进程和日志
进程情况,查不到chainmaker进程
ps -ef|grep chainmaker
启动日志如下:
2023-08-29 15:57:49.889 [INFO] [Blockchain] blockchain/chainmaker_server.go:112 load net tls key file path: /opt/workspace/go/src/chainmaker.org/chainmaker-go/build/release/chainmaker-v2.3.2-wx-org1.chainmaker.org/config/wx-org1.chainmaker.org/certs/node/consensus1/consensus1.tls.key
2023-08-29 15:57:49.889 [INFO] [Blockchain] blockchain/chainmaker_server.go:128 load net tls cert file path: /opt/workspace/go/src/chainmaker.org/chainmaker-go/build/release/chainmaker-v2.3.2-wx-org1.chainmaker.org/config/wx-org1.chainmaker.org/certs/node/consensus1/consensus1.tls.crt
2023-08-29 15:57:50.516 [INFO] [Blockchain] blockchain/chainmaker_server.go:290 load genesis file path of chain[chain1]: /opt/workspace/go/src/chainmaker.org/chainmaker-go/build/release/chainmaker-v2.3.2-wx-org1.chainmaker.org/config/wx-org1.chainmaker.org/chainconfig/bc1.yml
2023-08-29 15:57:50.518 [INFO] [Blockchain] @chain1 blockchain/blockchain_init.go:180 BASE INIT STEP (1/5) => init base[Subscriber] success :)
2023-08-29 15:57:50.519 [INFO] [Storage] @chain1 blockfiledb/blockfile.go:161 tmpPath is invalidate, will write block to path directly, err: <nil>
2023-08-29 15:57:52.337 [INFO] [Storage] @chain1 v2@v2.3.4/store_factory.go:908 no TxExistDB config, use BlockDB to replace TxExistDB
2023-08-29 15:57:52.340 [INFO] [Storage] @chain1 archive/filestore.go:698 update segments dir file cnt: 0, l.segments cnt: 0
2023-08-29 15:57:52.340 [INFO] [Storage] @chain1 v2@v2.3.4/blockstore_impl.go:169 start recovery of block,getLastFileSavepoint:[348]
2023-08-29 15:57:52.340 [INFO] [Storage] @chain1 v2@v2.3.4/blockstore_impl.go:1642 recover checking, savepoint: fileblockDB[348] blockDB[563] stateDB[563] historyDB[563] contractEventDB[0] bigfilterDB[0]
【相关日志文件】(如果有报错日志请贴图,或者上传附件)
chainmaker-go 的 log/system.log & bin/panic.log file * system.log
【系统信息】(请填写系统信息,方便定位问题)
- chainmaker-go version * : [v2.3.2]
- **OS & version * : CentOS-8.1.1911
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information