diff --git a/components/playground/playground.go b/components/playground/playground.go index d814422a81..fc600fc21e 100644 --- a/components/playground/playground.go +++ b/components/playground/playground.go @@ -674,7 +674,7 @@ func (p *Playground) addInstance(componentID string, pdRole instance.PDRole, tif dataDir := p.dataDir id := p.allocID(componentID) - dir := filepath.Join(dataDir, fmt.Sprintf("%s-%d", pdRole, id)) + dir := filepath.Join(dataDir, fmt.Sprintf("%s-%d", componentID, id)) if err = utils.MkdirAll(dir, 0755); err != nil { return nil, err }