datavane / datasophon

The next generation of cloud-native big data management expert , Aims to help users rapidly build stable, efficient, and scalable cloud-native platforms for big data.
https://datasophon.github.io/datasophon-website/
Apache License 2.0
1.01k stars 360 forks source link

[Bug] [datasophon-api] 集群安装服务失败,删除服务重新安装,因为没有删除失败服务的全局参数(t_ddh_cluster_variable,GlobalVariables), 重新安装任然使用安装失败时配置的参数(Doirs2.0.7) #545

Open hawk9821 opened 1 month ago

hawk9821 commented 1 month ago

Search before asking

What happened

集群安装服务失败,删除服务,未删除服务对应的参数(t_ddh_cluster_variable,GlobalVariables)

What you expected to happen

集群安装服务失败,删除服务,未删除服务对应的参数(t_ddh_cluster_variable,GlobalVariables)

How to reproduce

  1. t_ddh_cluster_variable 表增加 service_name字段
  2. 删除服务时候根据 cluster_id ,service_name查询 t_ddh_cluster_variable 所有参数,循环删除GlobalVariables
  3. 根据cluster_id ,service_name删除t_ddh_cluster_variable 中数据

Anything else

No response

Version

dev

Are you willing to submit PR?

Code of Conduct

datasophon commented 1 month ago

在重新安装服务时会更新服务对应的全局变量,是否有必要删除?

hawk9821 commented 1 month ago

我是在安装Doirs是发现的这个问题,重新安装Doirs时,${feMaster}这个参数并没有删除也没有更新,导致重新安装异常。 在架构层统一所有组件的安装逻辑是合适的,在删除组件时清理掉组件对应的参数,不影响后续重新安装应该是必须的。

在重新安装服务时会更新服务对应的全局变量,是否有必要删除?