Preprocessed traces: https://pastila.nl/?0006a09d/f3f1725be8a2ec8787b2d5c8b1eb6532
Report: https://s3.amazonaws.com/clickhouse-test-reports/40506/f2be18b3a644debbb882b8a9e8396b0375461b36/stress_test__undefined_.html
LOG_ERROR(&Poco::Logger::get("ProcessList"), "Logical error: cannot find user in ProcessList");
        std::terminate();
    }
    ProcessListForUser & user_process_list = user_process_list_it->second;
    bool found = false;
    if (auto running_query = user_process_list.queries.find(query_id); running_query != user_process_list.queries.end())
    {
        if (running_query->second == process_list_element_ptr)
        {
            user_process_list.queries.erase(running_query->first);
            found = true;
        }
    }
    
    parent.processes.erase(it);
    if (!found)
    {
        LOG_ERROR(&Poco::Logger::get("ProcessList"), "Logical error: cannot find query by query_id and pointer to ProcessListElement in ProcessListForUser");
        std::terminate();
    }
    parent.decreaseQueryKindAmount(query_kind);
    parent.have_space.notify_all();
    
    if (user_process_list.queries.empty())
        user_process_list.resetTrackers();
    
    if (parent.processes.empty())
        parent.total_network_throttler.reset();
}
QueryStatus::QueryStatus(