Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-2744

Query to MongoDB Atlas 4.2.8 in hanging state after sometime

      Hi,

      Am using below components:

      1. MongoDB Atlas 4.2.8
      2. Native MongoDB NodeJS driver v. 3.5.9

      3. mongodb-client-encryption v.1.1.0

      Initially all queries are running fine but sometimes the queries made through nodejs driver are hanging, i.e we are not getting any response from mongodb Atlas. There are no error logs getting logged as well. 

      I enabled debugging mode of MongoDB driver but still the logs are showing nothing except this

       

      [DEBUG-Cursor:24] 1596389896732 issue initial query [{"find":"<collectionName>","limit":-1,"skip":0,"query":{"primary_phone_number.phone_number":"7675675675","primary_phone_number.country_code":"91"},"hint":null,"slaveOk":true,"readPreference":{"mode":"primary"},"batchSize":1}] with flags [undefined] { type: 'debug',
       message:
       'issue initial query [{"find":"<collectionName>","limit":-1,"skip":0,"query":{"primary_phone_number.phone_number":"7675675675","primary_phone_number.country_code":"91"},"hint":null,"slaveOk":true,"readPreference":{"mode":"primary"},"batchSize":1}] with flags [undefined]',
       className: 'Cursor',
       pid: 24,
       date: 1596389896732 }

      All am getting to know from this log is that query is getting fired from driver to mongodb Atlas but i guess there is no response coming back.

      What can the possible issue?

            Assignee:
            matt.broadstone@mongodb.com Matt Broadstone
            Reporter:
            anirudha.gohokar@accionlabs.com Anirudha Gohokar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: