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

No way to detect when replica set becomes unavailable

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Community Answered
    • Affects Version/s: 2.2.27
    • Fix Version/s: None
    • Component/s: MongoDB 3.2
    • Labels:
      None

      Description

      We are developing a microservice which integrates with a MongoDB Server backend. We support the MongoDB Server in a standalone configuration. When the MongoDB Server becomes unavailable (e.g., when the close event on db is raised), we put the service into a paused state. When then attempt to reconnect (via MongoClient.connect()) in background to go from a paused to a running state.

      We would like to support replica set configurations, as well, but note that the close event is not raised by db in this configuration. We need to be agnostic on the MongoDB Server configuration as it is provided by our customers. We are looking for a consistent way to detect when either a standalone server or an entire replica set is no longer available.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            gboysko Glenn Boysko
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: