Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Robomongo reuses replicaset hostnames if there's two configurations with same replicaset name and different hosts #1302
I ran into a VERY dangerous situation that seems to be related to the problem in issue #1288 but I feel that this merits its own issue that should be red flagged!
We have test and production replica sets, which have same replica set name but different hosts. I have created replica set configurations for these in Robomongo, and edited the robomongo.js as instructed in #1288
Now, if I connect to production replica set first, and then to test replica set, Robomongo seems to remember production replica set hostnames and uses those to seemingly connect to test replica set!! I end up in a situation where at a glance it seems that I'm doing things in test environment but in reality I'm connected to production!!
I myself have stopped using Robomongo because of this and I will be instructing people that I've recommended Robomongo to do the same until this is fixed.
Hi @mahe-kl , thanks for reporting the problem.
I totally agree with you that this issue should be red-flagged which has already been.
Having said that we are already thinking how to avoid this critical problem. We will have to change the mongo design which will not be very easy.
For now, I can suggest to use https://studio3t.com/, which you might already have heard that we are now under the same organization.
No problem. An update about this issue, we have already included a fix and error message to prevent this problem. But for now replica sets with same set name will be supported only on different instances of Robomongo, which means you have to open two Robomongo, one for production and one for your test.
The fix is planned to be included in the next release Robomongo 1.0.