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.
Bug
If the file being ingested is empty clp-s will exit due to
clp_s::try_deduce_reader_type(clp_s/InputConfig.cpp) returningclp_s::FileType::Unknown. This file type is returned asclp_s::try_deduce_reader_typealways 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.