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

Driver hangs on count command in replica set with one member

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.2.6
    • Fix Version/s: 2.2.7
    • Component/s: None
    • Labels:
    • Operating System:
      ALL
    • # Replies:
      5
    • Last comment by Customer:
      true

      Description

      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.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since reply:
                2 years, 16 weeks, 1 day ago
                Date of 1st Reply: