diff --git a/dbm-services/common/dbha/ha-module/test/agent_test.go b/dbm-services/common/dbha/ha-module/test/agent_test.go index f182dbc997..5177955d33 100644 --- a/dbm-services/common/dbha/ha-module/test/agent_test.go +++ b/dbm-services/common/dbha/ha-module/test/agent_test.go @@ -68,7 +68,7 @@ func TestAgentNetTransfor(t *testing.T) { case 3: dbIns.App = "APP4444" } - err = agentIns.ReporterGM(d) + err = agentIns.RepairGM(&gmInfo) if err != nil { t.Errorf("reporter gmInfo failed.err:%s", err.Error()) return diff --git a/dbm-services/mysql/db-simulation/handler/handler.go b/dbm-services/mysql/db-simulation/handler/handler.go index 813102608a..fe20d91a57 100644 --- a/dbm-services/mysql/db-simulation/handler/handler.go +++ b/dbm-services/mysql/db-simulation/handler/handler.go @@ -36,8 +36,9 @@ type Response struct { // CreateClusterParam 创建临时的spider的集群参数 type CreateClusterParam struct { - Pwd string `json:"pwd"` - PodName string `json:"podname"` + Pwd string `json:"pwd"` + PodName string `json:"podname"` + SpiderVersion string `json:"spider_version"` } // CreateTmpSpiderPodCluster 创建临时的spider的集群,多用于测试,debug @@ -55,8 +56,7 @@ func CreateTmpSpiderPodCluster(r *gin.Context) { Charset: "utf8mb4", } ps.DbImage = config.GAppConfig.Image.Tendb57Img - ps.TdbCtlImage = config.GAppConfig.Image.TdbCtlImg - ps.SpiderImage = config.GAppConfig.Image.SpiderImg + ps.TdbCtlImage, ps.SpiderImage = getSpiderAndTdbctlImg(param.SpiderVersion, LatestVersion) if err := ps.CreateClusterPod(); err != nil { logger.Error(err.Error()) return