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

Driver hangs on count command in replica set with one member

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.2.7
    • Affects Version/s: 2.2.6
    • Component/s: None

      On one of our environments, we have a replica set with only one member. Issuing a "count" command on a collection, against this member (which is the primary, of course) does not return a response.

      We traced the issue to the mongodb-core/topologies/replset.js file, line 1067 - the driver stashes the command for future execution.

      This only occurs if our connection string features a replicaSet parameter, like so: "host:27017/DatabaseName?replicaSet=replicaSetName", otherwise it is probably not considered a replica set, haven't checked exactly why.

            Assignee:
            Unassigned Unassigned
            Reporter:
            georgi.prodanov Georgi
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: