crypto-com / chain-indexing

Other
35 stars 28 forks source link

Chain Indexing: Panic on missing write_acknowledgement event in TxsResultLog #857

Closed vincentysc closed 1 year ago

vincentysc commented 1 year ago

Error on Cosmos Hub production

2023-10-24T09:58:39Z DBG Exec args=["LatestHeight","17555590"] commandTag=SU5TRVJUIDAgMQ== module=pgx pid=5487 sql="INSERT INTO view_status (key,value) VALUES ($1,$2) ON CONFLICT(key) DO UPDATE SET VALUE=EXCLUDED.value"
panic: missing `write_acknowledgement` event in TxsResult log [recovered]
        panic: panic when parsing block at height 12019374: missing `write_acknowledgement` event in TxsResult log

goroutine 101 [running]:
github.com/crypto-com/chain-indexing/usecase/parser.ParseBlockToCommands.func1()
        /go/pkg/mod/github.com/crypto-com/chain-indexing@v1.7.21/usecase/parser/block.go:28 +0xb9
panic({0x19827a0, 0x20c67b0})
        /usr/local/go/src/runtime/panic.go:838 +0x207
github.com/crypto-com/chain-indexing/usecase/parser/v0_42_7/ibcmsg.ParseMsgSubmitTx({{0xc000f2f040, 0x6}, {0xc000f2eff8, 0x5}, {0x0, {0xc0000e61a0, 0xcf}, {0xc000c23a40, 0x5, 0x5}, ...}, ...}, ...)
        /go/pkg/mod/github.com/crypto-com/chain-indexing@v1.7.21/usecase/parser/v0_42_7/ibcmsg/ibcmsg.go:332 +0x17ee
github.com/crypto-com/chain-indexing/usecase/parser/v0_42_7/ibcmsg.ParseMsgRecvPacket({{0xc000f2f040, 0x6}, {0xc000f2eff8, 0x5}, {0x0, {0xc0000e61a0, 0xcf}, {0xc000c23a40, 0x5, 0x5}, ...}, ...})
        /go/pkg/mod/github.com/crypto-com/chain-indexing@v1.7.21/usecase/parser/v0_42_7/ibcmsg/ibcmsg.go:54 +0x345
github.com/crypto-com/chain-indexing/usecase/parser.ParseBlockTxsMsgToCommands(0xc001380270, 0xb766ae, 0xc0025cedd0, {0xc002eff400, 0x3, 0x1f4?}, {0xc000f2f040, 0x6}, {0xc000f2eff8, 0x5})
        /go/pkg/mod/github.com/crypto-com/chain-indexing@v1.7.21/usecase/parser/msg.go:141 +0x179a
github.com/crypto-com/chain-indexing/usecase/parser.ParseBlockToCommands({0x20f5c60, 0xc0015f4188}, 0x0?, {0x20f66e0, 0xc001380330}, 0xc001c0d710, 0xc000d821d8, 0xc0025cedd0, {0xc002eff400, 0x3, ...}, ...)
        /go/pkg/mod/github.com/crypto-com/chain-indexing@v1.7.21/usecase/parser/block.go:42 +0x41b
github.com/crypto-com/chain-indexing/bootstrap.(*SyncManager).syncBlockWorker(0xc001341a00, 0xb766ae)
        /go/pkg/mod/github.com/crypto-com/chain-indexing@v1.7.21/bootstrap/syncmanager.go:297 +0x592
github.com/crypto-com/chain-indexing/usecase/syncstrategy.(*Window).Sync.func1()
        /go/pkg/mod/github.com/crypto-com/chain-indexing@v1.7.21/usecase/syncstrategy/window.go:57 +0x45
golang.org/x/sync/errgroup.(*Group).Go.func1()
        /go/pkg/mod/golang.org/x/sync@v0.1.0/errgroup/errgroup.go:75 +0x64
created by golang.org/x/sync/errgroup.(*Group).Go
        /go/pkg/mod/golang.org/x/sync@v0.1.0/errgroup/errgroup.go:72 +0xa5