Skip to content

Conversation

@m1kola
Copy link
Contributor

@m1kola m1kola commented Nov 24, 2025

Summary

  • Removed the unused getReplicaSetMultiClusterMap function to make the linter happy
  • Reverted GetMultiServiceFQDN back to it's original version as it was breaking a lot of unit and e2e tests.

Proof of Work

This will break e2e_multi_cluster_new_replica_set_scale_up (expected as this is a - WIP test), but fix other multi-cluster related tests for existing APIs.

Checklist

  • Have you linked a jira ticket and/or is the ticket in the title?
  • Have you checked whether your jira ticket required DOCSP changes?
  • Have you added changelog file?

It was breaking a lot of unit end e2e tests.
@evergreen-ci-prod
Copy link

There is an existing patch(es) for this commit SHA:

Please note that the status that is posted is not in the context of this PR but rather the (latest) existing patch and that may affect some tests that may depend on the particular PR. If your tests do not rely on any PR-specific values (like base or head branch name) then your tests will report the same status. If you would like a patch to run in the context of this PR and abort the other(s), comment 'evergreen retry'.

@m1kola m1kola changed the base branch from master to mc-rs-unification-feature-branch November 24, 2025 14:01
@m1kola m1kola marked this pull request as ready for review November 24, 2025 14:02
@m1kola m1kola requested a review from a team as a code owner November 24, 2025 14:02
@m1kola m1kola requested review from Julien-Ben, MaciejKaras, filipcirtog and viveksinghggits and removed request for a team November 24, 2025 14:02
@m1kola m1kola mentioned this pull request Nov 24, 2025
3 tasks
podName := GetMultiPodName(stsName, clusterNum, podNum)
headlessService := GetMultiHeadlessServiceName(stsName, clusterNum)
return fmt.Sprintf("%s.%s.%s.svc.%s", podName, headlessService, namespace, domain)
return fmt.Sprintf("%s.%s.svc.%s", GetMultiServiceName(stsName, clusterNum, podNum), namespace, domain)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reverting back to this (original, as seen in master) code fixes most of the tests, but breaks MongoDB-based multi-cluster.

Controller for MongoDBMultiCluster generates hostnames like this:

multi-replica-set-0-0-svc.mongodb-test.svc.cluster.local
multi-replica-set-1-0-svc.mongodb-test.svc.cluster.local
multi-replica-set-2-0-svc.mongodb-test.svc.cluster.local

But the controller for MongoDB multi-cluster replica sets creates hostnames like this even with the revert:

multi-replica-set-0-0.multi-replica-set-0-svc.mongodb-test.svc.cluster.local
multi-replica-set-1-0.multi-replica-set-1-svc.mongodb-test.svc.cluster.local
multi-replica-set-2-0.multi-replica-set-2-svc.mongodb-test.svc.cluster.local

Still trying to understand why.

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.

1 participant