Skip to content

Commit

Permalink
Fix missing "tmp_path" in tiflash configuration make cluster_manager …
Browse files Browse the repository at this point in the history
…can not start (#4106) (#4122)

close #4091
  • Loading branch information
ti-chi-bot authored Apr 14, 2022
1 parent a849a50 commit 35cffd0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cluster_manage/flash_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ def __init__(self, file_path):
self.http_port = self.conf_toml['http_port']
else:
self.http_port = self.conf_toml['https_port']
tmp_path = self.conf_toml['tmp_path']

p = self.conf_toml['flash']
service_addr = p['service_addr']
Expand All @@ -32,7 +31,7 @@ def __init__(self, file_path):
self.cluster_refresh_interval = min(
int(flash_cluster.get('refresh_interval', 20)), self.cluster_master_ttl)
self.update_rule_interval = int(flash_cluster.get('update_rule_interval', 10))
self.log_path = flash_cluster.get('log', '{}/flash_cluster_manager.log'.format(tmp_path))
self.log_path = flash_cluster.get('log', '{}/flash_cluster_manager.log'.format(self.conf_toml.get('tmp_path', '/tmp')))
self.max_time_out = self.cluster_master_ttl

self.enable_tls = False
Expand Down

0 comments on commit 35cffd0

Please sign in to comment.