Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-930

Detect misconfigured clusters

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.12.0, 3.0.0
    • None
    • Cluster Management
    • None

    Description

      ClusterConnectionMode =

      { Single, Multiple }

      ClusterType =

      { Unknown, StandAlone, ReplicaSet, Sharded }

      Replica Set Name = <String>

      Decision tree:

      • if mode is Single
        • if type is Unknown
          • set type to whatever the server responds with
        • else if server's type != type
          • remove server from cluster
        • else if server's replica set name != replica set name
          • remove server from cluster
      • else (mode is Multiple)
        • if type is Unknown
          • set type to the type of the first server to respond
        • if server type != type
          • remove server from cluster
        • else if server's replica set name != replica set name
          • remove server from cluster
        • else if server type is StandAlone and there is more than one server
          • remove all but first server

      Attachments

        Activity

          People

            Unassigned Unassigned
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: