-
Type: Bug
-
Resolution: Cannot Reproduce
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Playgrounds
-
None
-
Environment:OS: macOS
-
Not Needed
Problem Statement/Rationale
On a sharder cluster, the run playground command returns results, but the new db and collection do not always appear in sidebar or `show dbs`.
Steps to Reproduce
- Connect to a sharded replica set
- Launch the shell for the current connection
- Use command palette to create a playground with template
- Replace the default `use('mongodbVSCodePlaygroundDB');` `with use('test1');`
- Run the playground
- Run `show dbs` in shell and see that `test1` db was added to the list
- In the same playground replace the default `use('test1');` `with use('test2');`
Expected Results
The `show dbs` command includes the new db in the list.
Actual Results
Sometimes you need to run a playground multiple times until the new db is added to the `show dbs` list.