Hi
When I used clickhouse-client to connect to the database, the database reported the following error!
<Error> TCPHandler: Code: 1001. DB::Exception: std::out_of_range: unordered_map::at: key not found. (STD_EXCEPTION), Stack trace (when copying this message, always i
nclude the lines below):

0. std::logic_error::logic_error(char const*) @ 0x18dd2a6d in ?
1. ? @ 0xa50afc9 in /usr/bin/clickhouse
2. ? @ 0xa50af80 in /usr/bin/clickhouse
3. DB::SettingsProfilesInfo::getProfileNames() const @ 0x1473a1b1 in /usr/bin/clickhouse
4. DB::SessionLog::addLoginSuccess(StrongTypedef<wide::integer<128ul, unsigned int>, DB::UUIDTag> const&, std::__1::optional<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<c
har> > >, DB::Context const&) @ 0x14739ab6 in /usr/bin/clickhouse
5. DB::Session::makeQueryContextImpl(DB::ClientInfo const*, DB::ClientInfo*) const @ 0x1472f947 in /usr/bin/clickhouse
6. DB::TCPHandler::receiveQuery() @ 0x1544e3ba in /usr/bin/clickhouse
7. DB::TCPHandler::receivePacket() @ 0x154477d6 in /usr/bin/clickhouse
8. DB::TCPHandler::runImpl() @ 0x15440dfe in /usr/bin/clickhouse
9. DB::TCPHandler::run() @ 0x15450e79 in /usr/bin/clickhouse
10. Poco::Net::TCPServerConnection::start() @ 0x164b264f in /usr/bin/clickhouse
11. Poco::Net::TCPServerDispatcher::run() @ 0x164b4aa1 in /usr/bin/clickhouse
12. Poco::PooledThread::run() @ 0x16671e49 in /usr/bin/clickhouse
13. Poco::ThreadImpl::runnableEntry(void*) @ 0x1666f1a0 in /usr/bin/clickhouse
14. ? @ 0x7fb387437609 in ?
15. __clone @ 0x7fb38735c163 in ?

Installed latest version clickhouse-server and clickhouse-client.
There was no such error in the version 20.9.2.20
#include <Access/SettingsProfilesCache.h>
#include <Access/AccessControl.h>
#include <Access/SettingsProfile.h>
#include <Access/SettingsProfilesInfo.h>
#include <Common/quoteString.h>
namespace DB
{
namespace ErrorCodes
{
    extern const int THERE_IS_NO_PROFILE;
}
SettingsProfilesCache::SettingsProfilesCache(const AccessControl & access_control_)