压测时,节点在活动状态,但是数据无法写入区块,可以查询数据,3组织,3节点
容器错误日志:
容器:consensus0-www-xnyf-com
已连接
using crypto CryptoEngine = tjfoc
using crypto CryptoEngine = tencentsm
2023/04/25 11:37:28 worker exits from a panic: runtime error: invalid memory address or nil pointer dereference
2023/04/25 11:37:28 worker exits from panic: goroutine 2522 [running]:
github.com/panjf2000/ants/v2.(*goWorker).run.func1.1(0xc003c7c360)
/go/pkg/mod/github.com/panjf2000/ants/v2@v2.4.7/worker.go:58 +0x17c
panic(0x2208240, 0x3998d20)
/usr/local/go/src/runtime/panic.go:965 +0x1b9
chainmaker.org/chainmaker/vm-docker-go/v2.(*RuntimeInstance).errorResult(0xc011bb3840, 0x0, 0x2983a20, 0xc011d1d2d0, 0x25d1208, 0x18, 0x4d685b, 0xc0116fc058)
/go/pkg/mod/chainmaker.org/chainmaker/vm-docker-go/v2@v2.2.2/runtime.go:1253 +0x26
chainmaker.org/chainmaker/vm-docker-go/v2.(*RuntimeInstance).Invoke(0xc011bb3840, 0xc003c7c510, 0xc0023a14c0, 0xf, 0x0, 0x0, 0x0, 0xc003c7c4b0, 0x29e7658, 0xc011b14b40, ...)
/go/pkg/mod/chainmaker.org/chainmaker/vm-docker-go/v2@v2.2.2/runtime.go:94 +0x2dc6
chainmaker.org/chainmaker/vm/v2.(*VmManagerImpl).invokeUserContractByRuntime(0xc0001bddd0, 0xc003c7c510, 0xc0023a14c0, 0xf, 0xc003c7c4b0, 0x29e7658, 0xc011b14b40, 0x0, 0x0, 0x0, ...)
/go/pkg/mod/chainmaker.org/chainmaker/vm/v2@v2.2.2/vm_factory.go:297 +0x1206
chainmaker.org/chainmaker/vm/v2.(*VmManagerImpl).runUserContract(0xc0001bddd0, 0xc003c7c510, 0xc0023a14c0, 0xf, 0x0, 0x0, 0x0, 0xc003c7c4b0, 0x29e7658, 0xc011b14b40, ...)
/go/pkg/mod/chainmaker.org/chainmaker/vm/v2@v2.2.2/vm_factory.go:210 +0xcf
chainmaker.org/chainmaker/vm/v2.(*VmManagerImpl).RunContract(0xc0001bddd0, 0xc003c7c510, 0xc0023a14c0, 0xf, 0x0, 0x0, 0x0, 0xc003c7c4b0, 0x29e7658, 0xc011b14b40, ...)
/go/pkg/mod/chainmaker.org/chainmaker/vm/v2@v2.2.2/vm_factory.go:167 +0x433
chainmaker.org/chainmaker-go/module/core/common/scheduler.(*TxScheduler).runVM(0xc007b7d200, 0xc0119ebf20, 0x29e7658, 0xc011b14b40, 0x1, 0x1, 0x29e3c58, 0xc000ca15e0)
/chainmaker-go/module/core/common/scheduler/scheduler.go:593 +0x92f
chainmaker.org/chainmaker-go/module/core/common/scheduler.(*TxScheduler).executeTx(0xc007b7d200, 0xc0119ebf20, 0x29e0650, 0xc011416640, 0xc000c9ee40, 0xc01186af48, 0x4c7cab, 0xc011ead3d8, 0xc000784398)
/chainmaker-go/module/core/common/scheduler/scheduler.go:430 +0x29c
chainmaker.org/chainmaker-go/module/core/common/scheduler.(*TxScheduler).SimulateWithDag.func2.1()
/chainmaker-go/module/core/common/scheduler/scheduler.go:330 +0xbf
github.com/panjf2000/ants/v2.(*goWorker).run.func1(0xc003c7c360)
/go/pkg/mod/github.com/panjf2000/ants/v2@v2.4.7/worker.go:70 +0x94
created by github.com/panjf2000/ants/v2.(*goWorker).run
/go/pkg/mod/github.com/panjf2000/ants/v2@v2.4.7/worker.go:48 +0x4c
执行查询时的结果:
{"message":"SUCCESS","contract_result":{"result":"eyJBY2NvdW50IjoiMTAwODYiLCJNb25leSI6IjEwMCJ9","message":"Success","gas_used":10271},"tx_id":"175910931d2b9a3bca50aa0c192f94e6800c72314ff7498393dc970661f1f8fa"}
执行写入时的结果:
getSyncResult failed, get tx by txId [175910971ba97f37ca38b8f8b07e1248def519a3b6ad4547a142844bbc836857] failed, QUERY_CONTRACT failed, txStatusCode:4, resultCode:1, contractName[CHAIN_QUERY] method[GET_TX_BY_TX_ID] txType[QUERY_CONTRACT], no such transaction, chainId:multzzyc, txid: 175910971ba97f37ca38b8f8b07e1248def519a3b6ad4547a142844bbc836857, get tx results timed out, please query this txid later for the tx results, see sdk log file for more details
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information