#34528

**Describe the bug**
[A link to the report](https://s3.amazonaws.com/clickhouse-test-reports/34528/6a8e35930ffc25f0574179c5ad93635cfe073121/stress_test__thread__actions_.html)


{
    if (!partitions.empty())
        throw Exception(ErrorCodes::NOT_IMPLEMENTED, "Table engine {} doesn't support partitions", getName());
    auto restore_task = [this, backup, data_path_in_backup, context]()
    {
        auto lock_timeout = getLockTimeout(context);
        WriteLock lock{rwlock, lock_timeout};
        if (!lock)
            throw Exception("Lock timeout exceeded", ErrorCodes::TIMEOUT_EXCEEDED);
        if (!num_data_files)
            return;
        
        loadMarks(lock);
        
        saveFileSizes(lock);
        try