Skip to content

Conversation

@enriquerodbe
Copy link
Contributor

Description

During fast sync, the FastSync actor is busy and may take some time to respond to the ask call from the EthService. Our current ask timeout for that call is 100 milliseconds, so from time to time if there are many requests, the service will timeout.
See #852.

Proposed Solution

To fix the issue now, we decided to increase the timeout because the actor eventually responds, it just takes more than 100 milliseconds.
A refactoring of all the sync-related actors is on the roadmap so it isn't worth to make an optimization for this eth_syncing endpoint right now.

Testing

See steps to reproduce in #852.

@enriquerodbe enriquerodbe self-assigned this Dec 30, 2020
@enriquerodbe enriquerodbe linked an issue Dec 30, 2020 that may be closed by this pull request
Copy link
Contributor

@lemastero lemastero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍
Lets 🚢 it :)

@enriquerodbe enriquerodbe merged commit c069d08 into develop Dec 30, 2020
@enriquerodbe enriquerodbe deleted the feature/ETCM-493-eth_syncing_timeout branch December 30, 2020 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

JSON-RPC exception calling eth_syncing

3 participants