Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLOUDP-188144: remove by cluster name - support multiple replica sets and mongos #204

Merged
merged 1 commit into from Jul 5, 2023

Conversation

tibulca
Copy link
Contributor

@tibulca tibulca commented Jul 5, 2023

Proposed changes

remove by cluster name - support multiple replica sets and mongos

Jira ticket: CLOUDP-188144

Checklist

  • [] I have signed the MongoDB CLA
  • I have added tests that prove my fix is effective or that my feature works
  • [] I have added any necessary documentation (if appropriate)
  • I have run make fmt and formatted my code

@tibulca tibulca requested a review from a team as a code owner July 5, 2023 09:56
@@ -61,10 +63,12 @@ func removeByShardName(out *opsmngr.AutomationConfig, name string) {
// remove config rs
removeByReplicaSetName(out, s.ConfigServerReplica)
// remove mongos
for j := range out.Processes {
if out.Processes[j].Cluster == name {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was generating panic when the cluster had more than one mongos

@tibulca tibulca merged commit ba0918b into master Jul 5, 2023
3 checks passed
@tibulca tibulca deleted the CLOUDP-188144 branch July 5, 2023 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants