Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-3842

Compass connects to wrong cluster for certain db's when disconnected from one cluster and then connecting to a different cluster with identical db and collection names

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 1.19.3
    • Fix Version/s: 1.20.0
    • Component/s: Compass, Connectivity
    • Labels:
      None
    • Environment:
      Windows 10 Professional 64bit, Compass V1.19.3
    • # Replies:
      3
    • Last comment by Customer:
      true
    • Sprint:
      Iteration Manatee, Iteration Newt

      Description

      If I connect to one cluster (have tries local and atlas) and then disconnect in compass (menu bar >> connect >> disconnect) and then connect to a different cluster, any databases that have the same name and any of the same collections are still connected to the first cluster.

      Here's an example.  I have an atlas cluster when my production db's live.  I also have a local mongod running on my localhost, I have some dbs and collections that are named the same on both servers.  Sometimes I pull production data to my localhost to test.  If I connect to my atlas cluster in compass, and then disconnect and connect to my localhost in compass without closing compass, the dbs and collections in my localhost that are named the same as in atlas, will still be connected to atlas and not my localhost.

       

      So when I think I am connected to my localhost, I am actually connected to my production atlas, but only for the dbs and collections that are named the same.

      See screenshot below, where compass is connected to LocalHost, but DB is pointing to Atlas Cluster.

        Attachments

        1. Compass, wrong connection.PNG
          Compass, wrong connection.PNG
          119 kB
        2. this-is-a-fun-one.mov
          19.58 MB

          Activity

            People

            Assignee:
            durran.jordan Durran Jordan
            Reporter:
            rmolenhouse@kti.cc Robert Molenhouse
            Participants:
            Last commenter:
            Jessica Sigafoos
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since reply:
              1 year ago
              Date of 1st Reply: