Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Bug] Substreams Block Ingestor sleep times #4976

@YaroShkvorets

Description

@YaroShkvorets

Bug report

Noticed that Substreams Block Ingestor backoff instance is never reset in the loop. So the sleep time drops to 30 seconds eventually on an instance with connectivity issues, and never recovers.

Reproduce:

  1. Start indexing a substreams subgraph locally
  2. Shutdown Postgres docker container and wait until time between retries drops to 30 seconds
  3. Start Postgres container back up
  4. Shut it down again. It will continue to sleep for 30 seconds between retries even though it would make sense to recover back to 250ms wait times

Should be an easy fix - just reset it every time new cursor is different from latest_cursor

Relevant log output

No response

IPFS hash

No response

Subgraph name or link to explorer

No response

Some information to help us out

  • Tick this box if this bug is caused by a regression found in the latest release.
  • Tick this box if this bug is specific to the hosted service.
  • I have searched the issue tracker to make sure this issue is not a duplicate.

OS information

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions