Skip to content

Commit

Permalink
fix: delete zoopath of task_queue when destory cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
YenchangChan committed Apr 8, 2024
1 parent 0d6982f commit 0e77a79
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions service/runner/ck.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ func DestroyCkCluster(task *model.Task, d deploy.CKDeploy, conf *model.CKManClic
}
}
}
taskQueuePath := fmt.Sprintf("/clickhouse/task_queue/ddl/%s", conf.Cluster)
if err = service.DeleteAll(taskQueuePath); err != nil {
return errors.Wrapf(err, "[%s]", model.NodeStatusClearData.EN)
}

return nil
}

Expand Down

0 comments on commit 0e77a79

Please sign in to comment.