-
Notifications
You must be signed in to change notification settings - Fork 10
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
Gateway stops indexing new blocks #590
Comments
We captured some data from the most recent hang. Besides the halt in indexing, the key indicator there is an issue is that goroutines start to climb: The goroutines profile shows they are waiting to get a lock creating new subscriptions on the blocks provider This lock is also held when notifying subscriptions about published messages: flow-evm-gateway/models/stream.go Lines 20 to 27 in 44112e1
The subscription flow-evm-gateway/models/stream.go Lines 58 to 63 in 0fde502
That has since been fixed (PR) flow-evm-gateway/models/stream.go Lines 60 to 70 in 44112e1
Here is the code that deadlocks: flow-evm-gateway/api/stream.go Lines 148 to 170 in 47ecbea
The deadlock can happen if the client disconnects, and before |
Problem
Over the last few days we had multiple occurences of EVM GW stopping block indexing.
examples:
The Flow process is still running, restarting the flow process on the Gateway temporarily resolves the problem.
The text was updated successfully, but these errors were encountered: