Skip to content

Commit

Permalink
fix(mongodb): 增加mongos时获取configDB的replSetName修复 #5325
Browse files Browse the repository at this point in the history
  • Loading branch information
yyhenryyy authored and zhangzhw8 committed Jul 3, 2024
1 parent 14ab436 commit 243a0a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ func ShutdownMongoProcess(user string, instanceType string, binDir string, dbpat
if _, err := util.RunBashCmd(
cmd,
"", nil,
60*time.Second); err != nil {
120*time.Second); err != nil {
return err
}
return nil
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ def increase_mongos(root_id: str, ticket_data: Optional[Dict], sub_kwargs: ActKw
sub_get_kwargs.payload["config"]["port"] = sub_get_kwargs.payload["config_nodes"][0]["port"]
sub_get_kwargs.payload["app"] = sub_get_kwargs.payload["db_app_abbr"]
cluster_name = info["cluster_name"]
sub_get_kwargs.mongos_info["set_id"] = cluster_name
sub_get_kwargs.db_main_version = str(info["db_version"].split(".")[0])
sub_get_kwargs.mongos_info["conf_set_id"] = "{}-conf".format(cluster_name)
sub_get_kwargs.payload["key_file"] = sub_get_kwargs.get_conf(cluster_name=cluster_name)["key_file"]
sub_get_kwargs.payload["nodes"] = []
sub_get_kwargs.payload["nodes"].append(sub_get_kwargs.payload["mongos_nodes"][0])
Expand Down

0 comments on commit 243a0a1

Please sign in to comment.