[COMPASS-3265] Disconnecting while still connecting causes issues that completely break Compass Created: 16/Nov/18  Updated: 29/Oct/23  Resolved: 29/Nov/18

Status: Closed
Project: Compass
Component/s: Compass, Connectivity
Affects Version/s: None
Fix Version/s: 1.18.0

Type: Bug Priority: Minor - P4
Reporter: Massimiliano Marcon Assignee: Durran Jordan
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Epic Link: COMPASS-1173
Sprint: Iteration Sriracha, Iteration Takaioko

 Description   

How to reproduce:

  1. Open Compass
  2. Fill out the connection information (or use a favorite). Connect to something remote so it takes some time to establish the connection.
  3. Click on Connect
  4. While still connecting, go to the menu and click Disconnect.

At this point, Compass typically remains frozen on "Loading navigation" with the semi-transparent layer on top of the whole app. Cmd + Shift + R doesn't help, in fact, the whole app UI is replaced with a blank screen.

If the above does not happen, when you try to connect again to the same or a different MongoDB you get the Topology Destroyed error.



 Comments   
Comment by Githook User [ 29/Nov/18 ]

Author:

{'name': 'Durran Jordan', 'email': 'durran@gmail.com', 'username': 'durran'}

Message: COMPASS-3265: Don't disconnect until connect finished
Branch: master
https://github.com/10gen/compass/commit/a679eec29e0416ab9e721b1658d97786318d7da9

Comment by Githook User [ 29/Nov/18 ]

Author:

{'name': 'Durran Jordan', 'email': 'durran@gmail.com', 'username': 'durran'}

Message: COMPASS-3265: Don't disconnect until connect finished
Branch: COMPASS-3265
https://github.com/10gen/compass/commit/186b3beafcaaf2fade0c65d33ba50293093328cc

Comment by Githook User [ 29/Nov/18 ]

Author:

{'name': 'Durran Jordan', 'email': 'durran@gmail.com', 'username': 'durran'}

Message: COMPASS-3265: Provide callback to disconnect and force close
Branch: master
https://github.com/mongodb-js/data-service/commit/2ffe3b0768858561841b6b50abfb573e29800867

Generated at Wed Feb 07 22:32:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.