From 9e5f2bdc31d7ec46f4e1d40d83faeb5f2bc4be99 Mon Sep 17 00:00:00 2001 From: unbyte Date: Thu, 10 Dec 2020 10:44:22 +0800 Subject: [PATCH] fix: fail to create config for tiflash (#969) Co-authored-by: SIGSEGV --- components/playground/instance/tiflash.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/playground/instance/tiflash.go b/components/playground/instance/tiflash.go index 92a99fc541..40d168fe2a 100644 --- a/components/playground/instance/tiflash.go +++ b/components/playground/instance/tiflash.go @@ -208,6 +208,9 @@ func (inst *TiFlashInstance) StoreAddr() string { } func (inst *TiFlashInstance) checkConfig(deployDir, clusterManagerPath string, version pkgver.Version, tidbStatusAddrs, endpoints []string) error { + if err := os.MkdirAll(inst.Dir, 0755); err != nil { + return errors.Trace(err) + } if inst.ConfigPath == "" { inst.ConfigPath = path.Join(inst.Dir, "tiflash.toml") }