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
Currently
cleanup_interrupted_raw_import()removes only cells but does not update block handles and etc. Actually, the state is inconsistent even ifinterrupted_raw_importwas 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 indownload_shard_stateas well.This is a follow-up for #1081 and #1100