Merge pull request #14553 from ClickHouse/fix-flacky-test-11

Handle host/network is unreachable in integration tests
This commit is contained in:
Ilya Yatsishin 2020-09-08 14:45:00 +03:00 committed by GitHub
commit 37236e5923
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1041,7 +1041,7 @@ class ClickHouseInstance:
except socket.timeout:
continue
except socket.error as e:
if e.errno == errno.ECONNREFUSED:
if e.errno == errno.ECONNREFUSED or e.errno == errno.EHOSTUNREACH or e.errno == errno.ENETUNREACH:
time.sleep(0.1)
else:
raise