Skip to content

Make container creation recoverable / resumable #14

Description

@MichaelKreil

Problem

Container creation currently isn’t recoverable. If the process crashes or is interrupted mid-way, the only option is to delete everything and start from scratch. This is painful for large containers.

Desired behavior

If container creation is interrupted, rerunning the command should resume from the existing partially-created container state instead of rebuilding everything.

Proposed approach

Store a small, machine-detectable header/metadata record for each container “block” (chunk) that includes:

  • Block coordinate
  • Block size
  • Optional integrity info (e.g., checksum / hash)

On startup, the creation process should:

  1. Detect, that the block index is invalid or missing and then:
  2. Scan existing blocks in the target container
  3. Validate blocks (presence + expected size, optionally checksum)
  4. Reuse valid blocks
  5. Regenerate missing or invalid blocks only
  6. Continue until the container is complete
  7. write the correct block index

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions