Skip to content

Allow online index backfilling #7340

Description

@LesnyRumcajs

Summary

Right now Forest needs to be shut down to run, e.g., ❯ forest-tool index backfill --chain mainnet --to 6172000. Failing to do so, ends up in an error:

Error: Database file is in use. (Resource temporarily unavailable (os error 11))

Caused by:
    Resource temporarily unavailable (os error 11)

I guess it's not an inherent limitation of the logic itself - more like ParityDb refusing to be shared by two processes (fair). If it's the case, we can just move it to the daemon and call it via forest-cli. This should be quite straightforward, but there might be some edge cases to look for, e.g., existing state & caches.

Completion Criteria

  • allow online backfilling

Additional Links & Resources

Metadata

Metadata

Assignees

Labels

Type: TaskDiscrete task to implement

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
Ready

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions