https://clickhouse-test-reports.s3.yandex.net/8367/333ec2e496f4fe4addd22d5fa7c5c2a499099c57/fuzzer/fuzzer.log#fail1
const KeyRefs & keys,
    const Attributes & new_attributes,
    const PaddedPODArray<Metadata> & metadata,
    const size_t begin)
{
    if (!memory)
        memory.emplace(block_size * write_buffer_size, BUFFER_ALIGNMENT);
    auto init_write_buffer = [&]()
    {
        write_buffer.emplace(memory->data() + current_memory_block_id * block_size, block_size);
        uint64_t tmp = 0;
        write_buffer->write(reinterpret_cast<char*>(&tmp), BLOCK_CHECKSUM_SIZE_BYTES);
        write_buffer->write(reinterpret_cast<char*>(&tmp), BLOCK_SPECIAL_FIELDS_SIZE_BYTES);
        keys_in_block = 0;
    };
    if (!write_buffer)
        init_write_buffer();
    if (!keys_buffer_pool)
        keys_buffer_pool.emplace();
    bool flushed = false;
    auto finish_block = [&]()
    {
        write_buffer.reset();