Skip to content

Use RawImportInProgress as a "poisoned" marker and require re-sync #1102

Description

@SmaGMan

Currently cleanup_interrupted_raw_import() removes only cells but does not update block handles and etc. Actually, the state is inconsistent even if interrupted_raw_import was cleared.

So we need to consider RawImportInProgress as a "poisoned" marker and crash node with a error that re-sync is required. In this case we need to set RawImportInProgress not only in import_zerostates, but in download_shard_state as well.

This is a follow-up for #1081 and #1100

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-coreCore moduleP-mediumMedium priorityS-featureSeverity: feature. This is adding a new feature.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions