Uploaded image for project: 'VS Code Extension'
  1. VS Code Extension
  2. VSCODE-434

Run playground fails to add a new db to the list

    • Type: Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • 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.

            Assignee:
            Unassigned Unassigned
            Reporter:
            alena.khineika@mongodb.com Alena Khineika
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: