```
2022.11.28 23:39:57.139031 [ 295613 ] {} <Error> DB::StorageFileLog::StorageFileLog(const DB::StorageID &, DB::ContextPtr, const DB::ColumnsDescription &, const DB::String &, const DB::String &, const DB::String &, std::unique_ptr<FileLogSettings>, const DB::String &, bool): Code: 33. DB::Exception: Read meta file data/test_13/file_log/metadata/test17.csv failed. (CANNOT_READ_ALL_DATA), Stack trace (when copying this message, always include the lines below):
```
https://s3.amazonaws.com/clickhouse-test-reports/43675/0342e6b2361b0f3c78af2ad7a5238d63c69add16/stress_test__asan_.html

cc: @ucasfl, @kssenii 

{
    ReadBufferFromFile in(full_name);
    UInt64 _, last_written_pos;
    if (!tryReadIntText(_, in))
    {
        throw Exception(ErrorCodes::CANNOT_READ_ALL_DATA, "Read meta file {} failed", full_name);
    }
    assertChar('\n', in);
    if (!tryReadIntText(last_written_pos, in))
    {
        throw Exception(ErrorCodes::CANNOT_READ_ALL_DATA, "Read meta file {} failed", full_name);
    }
    if (last_written_pos > offset)
        throw Exception(
            ErrorCodes::LOGICAL_ERROR, "Last stored last_written_pos in meta file {} is bigger than current last_written_pos", full_name);
}
size_t StorageFileLog::getMaxBlockSize() const
{
    return filelog_settings->max_block_size.changed ? filelog_settings->max_block_size.value
                                                    : getContext()->getSettingsRef().max_insert_block_size.value;
}
size_t StorageFileLog::getPollMaxBatchSize() const
{
    size_t batch_size = filelog_settings->poll_max_batch_size.changed ? filelog_settings->poll_max_batch_size.value
                                                                      : getContext()->getSettingsRef().max_block_size.value;
    return std::min(batch_size, getMaxBlockSize());
}
size_t StorageFileLog::getPollTimeoutMillisecond() const