mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Revert "Fix uncaught DNS_ERROR on failed connection to replicas"
This commit is contained in:
parent
1bb53324b7
commit
54001d3871
@ -16,7 +16,6 @@ namespace ErrorCodes
|
|||||||
extern const int ATTEMPT_TO_READ_AFTER_EOF;
|
extern const int ATTEMPT_TO_READ_AFTER_EOF;
|
||||||
extern const int NETWORK_ERROR;
|
extern const int NETWORK_ERROR;
|
||||||
extern const int SOCKET_TIMEOUT;
|
extern const int SOCKET_TIMEOUT;
|
||||||
extern const int DNS_ERROR;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ConnectionEstablisher::ConnectionEstablisher(
|
ConnectionEstablisher::ConnectionEstablisher(
|
||||||
@ -91,7 +90,6 @@ void ConnectionEstablisher::run(ConnectionEstablisher::TryResult & result, std::
|
|||||||
catch (const Exception & e)
|
catch (const Exception & e)
|
||||||
{
|
{
|
||||||
if (e.code() != ErrorCodes::NETWORK_ERROR && e.code() != ErrorCodes::SOCKET_TIMEOUT
|
if (e.code() != ErrorCodes::NETWORK_ERROR && e.code() != ErrorCodes::SOCKET_TIMEOUT
|
||||||
&& e.code() != ErrorCodes::DNS_ERROR
|
|
||||||
&& e.code() != ErrorCodes::ATTEMPT_TO_READ_AFTER_EOF)
|
&& e.code() != ErrorCodes::ATTEMPT_TO_READ_AFTER_EOF)
|
||||||
throw;
|
throw;
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
SET prefer_localhost_replica = 1;
|
SET prefer_localhost_replica = 1;
|
||||||
|
|
||||||
SELECT count() FROM remote('127.0.0.1,localhos', system.one); -- { serverError 279 }
|
SELECT count() FROM remote('127.0.0.1,localhos', system.one); -- { serverError 198 }
|
||||||
SELECT count() FROM remote('127.0.0.1|localhos', system.one);
|
SELECT count() FROM remote('127.0.0.1|localhos', system.one);
|
||||||
|
|
||||||
-- Clear cache to avoid future errors in the logs
|
-- Clear cache to avoid future errors in the logs
|
||||||
|
Loading…
Reference in New Issue
Block a user