Skip to content
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

Handle LogPoller edge case involving backfill followed by an error #11298

Merged
merged 1 commit into from
Dec 12, 2023

Commits on Dec 12, 2023

  1. Handle edge case involving blocks not being found in the db

    If there is a backfill followed by an error, logs get written to the
    db but no blocks. This will make the logpoller (or backup log poller)
    rely on the chain next time instead of the db to determine
    lastFinalizedBlock, which could result in a gap in logs processed.
    Fixing this by writing the last block in the backfil to the db along
    with the logs. Its lastFinalizedBlock field will be set to its own
    block number + 1, so if the db crashes it should start by pulling
    the logs from that one.
    reductionista committed Dec 12, 2023
    Configuration menu
    Copy the full SHA
    3c48602 View commit details
    Browse the repository at this point in the history