Skip to content

[clp-s] Empty files cause compression to stop. #1993

@davidlion

Description

@davidlion

Bug

If the file being ingested is empty clp-s will exit due to clp_s::try_deduce_reader_type ( clp_s/InputConfig.cpp) returning clp_s::FileType::Unknown. This file type is returned as clp_s::try_deduce_reader_type always attempts to inspect the file's contents.

This can be a problem as sometimes input directories may contains logs from a process that was started and created its log file, but never wrote anything to it (due to crashing, doing no work, etc.).

CLP version

969b515

Environment

Any.

Reproduction steps

Call clp-s compression with an empty file.

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

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions