Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

datastore: key not found while querying the tx #1561

Open
Tracked by #1594
gupadhyaya opened this issue Feb 23, 2024 · 2 comments
Open
Tracked by #1594

datastore: key not found while querying the tx #1561

gupadhyaya opened this issue Feb 23, 2024 · 2 comments
Assignees
Labels
polaris v2 T:bug Something isn't working

Comments

@gupadhyaya
Copy link
Member

gupadhyaya commented Feb 23, 2024

Steps to reproduce:

  • Run a sequencer
  • Make a tx
  • Query: polard query tx 4F046AE0D5818D68402045EE60FB35A8BC8EDFC18E8828A4B646A5DF4ECEB4F0 --type=hash
polard  | 2024/02/22 23:17:35 http: panic serving ****: datastore: key not found
polard  | goroutine 535 [running]:
polard  | net/http.(*conn).serve.func1()
polard  |       net/http/server.go:1868 +0xb0
polard  | panic({0x2f3f700?, 0x6540030?})
polard  |       runtime/panic.go:920 +0x26c
polard  | github.com/rollkit/rollkit/state/txindex/kv.(*TxIndex).Get(0x4002305060, {0x40014315f0, 0x20, 0x46cf3c?})
polard  |       github.com/rollkit/rollkit@v0.11.4/state/txindex/kv/kv.go:55 +0x1e4
polard  | github.com/rollkit/rollkit/node.(*FullClient).Tx(0x4002c9f548, {0x400a6b9950?, 0x400a6b9980?}, {0x40014315f0, 0x20, 0x21}, 0x1)
polard  |       github.com/rollkit/rollkit@v0.11.4/node/full_client.go:531 +0x58
polard  | github.com/rollkit/rollkit/rpc/json.(*service).Tx(0x2?, 0x0?, 0x40011b4780?)
polard  |       github.com/rollkit/rollkit@v0.11.4/rpc/json/service.go:183 +0x5c
polard  | reflect.Value.call({0x2ed93a0?, 0x40017e0300?, 0x40016ed8b8?}, {0x34f3796, 0x4}, {0x40016eda08, 0x2, 0x44?})
polard  |       reflect/value.go:596 +0x994
polard  | reflect.Value.Call({0x2ed93a0?, 0x40017e0300?, 0x40028f99e0?}, {0x40016eda08?, 0x9?, 0x45fee70?})
polard  |       reflect/value.go:380 +0x94
polard  | github.com/rollkit/rollkit/rpc/json.(*handler).serveJSONRPCforWS(0x400116f4d0, {0x463c120, 0x400147e7e0}, 0x4002414100, 0x0)
polard  |       github.com/rollkit/rollkit@v0.11.4/rpc/json/handler.go:90 +0x300
polard  | github.com/rollkit/rollkit/rpc/json.(*handler).serveJSONRPC(...)
polard  |       github.com/rollkit/rollkit@v0.11.4/rpc/json/handler.go:52
polard  | net/http.HandlerFunc.ServeHTTP(0x4002650b28?, {0x463c120?, 0x400147e7e0?}, 0x7abca0?)
polard  |       net/http/server.go:2136 +0x38
polard  | net/http.(*ServeMux).ServeHTTP(0x4002650b58?, {0x463c120, 0x400147e7e0}, 0x4002414100)
polard  |       net/http/server.go:2514 +0x144
polard  | github.com/rollkit/rollkit/rpc/json.(*handler).ServeHTTP(0x10?, {0x463c120?, 0x400147e7e0?}, 0x400147e7e0?)
polard  |       github.com/rollkit/rollkit@v0.11.4/rpc/json/handler.go:47 +0x28
polard  | net/http.serverHandler.ServeHTTP({0x462b238?}, {0x463c120?, 0x400147e7e0?}, 0x6?)
polard  |       net/http/server.go:2938 +0xbc
polard  | net/http.(*conn).serve(0x4009d69b90, {0x464e9e0, 0x4002454180})
polard  |       net/http/server.go:2009 +0x518
polard  | created by net/http.(*Server).Serve in goroutine 194
polard  |       net/http/server.go:3086 +0x4cc
@gupadhyaya gupadhyaya added T:bug Something isn't working va labels Feb 23, 2024
@gupadhyaya gupadhyaya self-assigned this Feb 23, 2024
@gupadhyaya
Copy link
Member Author

confirmed that it only happens in polaris, not gm tutorial

@Manav-Aggarwal Manav-Aggarwal added the P:high Priority: High label Feb 26, 2024
@gupadhyaya
Copy link
Member Author

noticed tx bank send not working on polaris/rollkit. however i tried on polaris/main and seems to be not working as well. looks like the tx is stuck in the mempool and never makes it to the block (confirmed this by sending the same tx 2nd time and i get tx already in mempool). brief search in polaris issues and found: berachain/polaris#1483, which reports the same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
polaris v2 T:bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

3 participants