Skip to content

fix(clp-s): Archives populated exclusively with empty files on the write side are treated as invalid on the read side. #2137

@gibber9809

Description

@gibber9809

Bug

Currently our code to read schema metadata ArchiveReader::read_metadata will return ErrorCodeUnsupported when there are zero schemas in an archive. We can legitimately produce archives like this by passing empty files to ingestion, with no files containing any data.

We should update the read-side code to allow reading archives with no schemas instead of returning ErrorCodeUnsupported.

CLP version

0.10.0

Environment

Ubuntu docker container.

Reproduction steps

Ingest empty files as described. Observe the error by invoking clp-s x on the archive(s).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions