Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-1841

Hitting ctrl-c during a sample session will cause transient "MongoNotConnectedError: Client must be connected before running operations"

    • Developer Tools

      Repro:

      • run a `process` call
      • hit ctrl-c 
      • immediately call `process` again
      • will yield the error. it goes away after a few retries or restarting the shell

      sp.process([{ '$source':

      { connectionName: 'DemoKafka', topic: 'wiki1' }

      }])

      ... sample flow ...

      ^CStopping execution...

      AtlasStreamProcessing> sp.process([{ '$source':

      { connectionName: 'DemoKafka', topic: 'wiki1' }

      }])

      MongoNotConnectedError: Client must be connected before running operations

       

      Joe also saw this "MongoNotConnectedError: Client must be connected before running operations" error when he attempted to start a fresh .process (no ctrl-c involved).

       

       

       

            Assignee:
            Unassigned Unassigned
            Reporter:
            matthew.normyle@mongodb.com Matthew Normyle
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: