forked from MystenLabs/sui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
indexer: let handlers keep retrying (MystenLabs#7807)
### problem and solution Before this PR, the retrial starts with interval of 1 secs, each time multiply by 1.5 until reaching 10 min of interval, if the last retrial with interval of 10 min failed, the handlers would give up. On testnet wave 2, FN were down for a while, where handlers eventually gave up, this PR let handlers keep trying such that whenever FN resumed, indexer will catch up automatically as well. ### testing 1. run locally with testnet wave 2 PRC to make sure that indexer built after this PR on main is still compatible with testnet wave 2 2. test with local validator to make sure that handlers will indeed keep trying ``` 2023-01-29T06:08:44.785328Z WARN sui_indexer::handlers::handler_orchestrator: Indexer object event handler failed with error: FullNodeReadingError("Failed reading event page with cursor None and error: RpcError(Transport(HTTP error: connection error: Connection reset by peer (os error 54)))"), retrying after 10 secs... 2023-01-29T06:08:44.785328Z WARN sui_indexer::handlers::handler_orchestrator: Indexer publish event handler failed with error: FullNodeReadingError("Failed reading event page with cursor None and error: RpcError(Transport(HTTP error: connection closed before message completed))"), retrying after 10 secs... 2023-01-29T06:08:44.785328Z WARN sui_indexer::handlers::handler_orchestrator: Indexer move event handler failed with error: FullNodeReadingError("Failed reading Move event page with cursor None and error: RpcError(Transport(HTTP error: connection closed before message completed))"), retrying after 10 secs... 2023-01-29T06:08:44.828469Z WARN sui_indexer::handlers::handler_orchestrator: Indexer transaction handler failed with error: FullNodeReadingError("Failed reading transaction page with cursor None and err: RpcError(Transport(HTTP error: error trying to connect: tcp connect error: Connection refused (os error 61)))"), retrying after 10 secs... 2023-01-29T06:08:44.845842Z WARN sui_indexer::handlers::handler_orchestrator: Indexer event handler failed with error: FullNodeReadingError("Failed reading transaction page with cursor None and err: RpcError(Transport(HTTP error: error trying to connect: tcp connect error: Connection refused (os error 61)))"), retrying after 10 secs... ```
- Loading branch information
Showing
1 changed file
with
66 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters