dboissier / mongo4idea

MongoDB integration in Intellij
Apache License 2.0
975 stars 109 forks source link

Connection should ignore replica sets #208

Open pacanukeha opened 6 years ago

pacanukeha commented 6 years ago

I create an ssh tunnel to a remote instance that doesn't have a stable hostname so I don't want to list it in the plugin configuration.

This works for mongo shell or other mongo GUIs (Robo 3T, Mongobooster) but the plugin seems to be detecting a replica set member and then trying to connect to the other members. This doesn't work because the hosts aren't reachable.

I think that the connection should ignore replica sets or at least allow me to chose that - especially if I am connected to an instance appropriate for my Read Preference or my preference is Nearest.

JasonMing commented 4 years ago

I think it's better to support a "direct" mode connection like Robo3T. image