[COMPASS-6183] Embedded shell unable to reconnect Created: 10/Oct/22  Updated: 22/Nov/22

Status: Open
Project: Compass
Component/s: Embedded Shell
Affects Version/s: 1.33.1
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Roy Kiesler Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Story Points: 8

 Description   

When Compass is left open while the underlying cluster is paused long enough, the session will eventually time out, and when the cluster is resumed, the user can refresh the connection and the UI continues to work as expected; however, the embedded shell throws this error on subsequent commands:
MongoNotConnectedError: Client must be connected before running operations
at /Applications/MongoDB Compass.app/Contents/Resources/app.asar.unpacked/node_modules/@mongosh/node-runtime-worker-thread/dist/worker-runtime.js:2:171899
at t.maybePromise (/Applications/MongoDB Compass.app/Contents/Resources/app.asar.unpacked/node_modules/@mongosh/node-runtime-worker-thread/dist/worker-runtime.js:2:18756)
at e (/Applications/MongoDB Compass.app/Contents/Resources/app.asar.unpacked/node_modules/@mongosh/node-runtime-worker-thread/dist/worker-runtime.js:2:171834)
at Collection.updateMany (/Applications/MongoDB Compass.app/Contents/Resources/app.asar.unpacked/node_modules/@mongosh/node-runtime-worker-thread/dist/worker-runtime.js:2:236411)
at CompassServiceProvider.updateMany (/Applications/MongoDB Compass.app/Contents/Resources/app.asar.unpacked/node_modules/@mongosh/node-runtime-worker-thread/dist/worker-runtime.js:2:1143400)
at Proxy.updateMany (/Applications/MongoDB Compass.app/Contents/Resources/app.asar.unpacked/node_modules/@mongosh/node-runtime-worker-thread/dist/worker-runtime.js:2:893064)
at async Proxy.updateMany (/Applications/MongoDB Compass.app/Contents/Resources/app.asar.unpacked/node_modules/@mongosh/node-runtime-worker-thread/dist/worker-runtime.js:2:51942)
at async Proxy.<anonymous> (/Applications/MongoDB Compass.app/Contents/Resources/app.asar.unpacked/node_modules/@mongosh/node-runtime-worker-thread/dist/worker-runtime.js:2:46156)
at async Proxy.<anonymous> (/Applications/MongoDB Compass.app/Contents/Resources/app.asar.unpacked/node_modules/@mongosh/node-runtime-worker-thread/dist/worker-runtime.js:2:46591)
at async evalmachine.<anonymous>:38:25
 
If you try issuing the command connect("<my-connection-string>"), the following error occurs:
MongoshUnimplementedError: [COMMON-90002] new Mongo connections are not supported for current platform: Compass
 


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