Remove accident chage

This commit is contained in:
alesapin 2020-12-24 19:34:53 +03:00
parent 5d94b7eec0
commit 64c4ade5b0

View File

@ -195,12 +195,6 @@ class ClickHouseCluster:
if tag is None:
tag = self.docker_base_tag
if not env_variables:
env_variables = {}
# Code coverage files will be placed in database directory
# (affect only WITH_COVERAGE=1 build)
env_variables['LLVM_PROFILE_FILE'] = '/var/lib/clickhouse/server_%h_%p_%m.profraw'
instance = ClickHouseInstance(
cluster=self,
@ -227,7 +221,7 @@ class ClickHouseCluster:
clickhouse_path_dir=clickhouse_path_dir,
with_odbc_drivers=with_odbc_drivers,
hostname=hostname,
env_variables=env_variables,
env_variables=env_variables or {},
image=image,
tag=tag,
stay_alive=stay_alive,
@ -765,11 +759,9 @@ class ClickHouseCluster:
if kill:
try:
subprocess_check_call(self.base_cmd + ['stop', '--timeout', '20'])
except Exception as e:
print("Kill command failed during shutdown. {}".format(repr(e)))
print("Trying to kill forcefully")
subprocess_check_call(self.base_cmd + ['kill'])
except Exception as e:
print("Kill command failed durung shutdown. {}".format(repr(e)))
try:
subprocess_check_call(self.base_cmd + ['down', '--volumes', '--remove-orphans'])