Skip to content

sui_v0.24.0_1675060204_ci

@gegaowp gegaowp tagged this 30 Jan 05:36
### 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...
```
Assets 2
Loading