...

Text file src/go.mongodb.org/mongo-driver/testdata/server-discovery-and-monitoring/monitoring/replica_set_with_no_primary.json

Documentation: go.mongodb.org/mongo-driver/testdata/server-discovery-and-monitoring/monitoring

     1{
     2  "description": "Monitoring a topology that is a replica set with no primary connected",
     3  "uri": "mongodb://a,b",
     4  "phases": [
     5    {
     6      "responses": [
     7        [
     8          "a:27017",
     9          {
    10            "ok": 1,
    11            "helloOk": true,
    12            "isWritablePrimary": false,
    13            "secondary": true,
    14            "setName": "rs",
    15            "setVersion": 1,
    16            "primary": "b:27017",
    17            "hosts": [
    18              "a:27017",
    19              "b:27017"
    20            ],
    21            "minWireVersion": 0,
    22            "maxWireVersion": 6
    23          }
    24        ]
    25      ],
    26      "outcome": {
    27        "events": [
    28          {
    29            "topology_opening_event": {
    30              "topologyId": "42"
    31            }
    32          },
    33          {
    34            "topology_description_changed_event": {
    35              "topologyId": "42",
    36              "previousDescription": {
    37                "topologyType": "Unknown",
    38                "servers": []
    39              },
    40              "newDescription": {
    41                "topologyType": "Unknown",
    42                "servers": [
    43                  {
    44                    "address": "a:27017",
    45                    "arbiters": [],
    46                    "hosts": [],
    47                    "passives": [],
    48                    "type": "Unknown"
    49                  },
    50                  {
    51                    "address": "b:27017",
    52                    "arbiters": [],
    53                    "hosts": [],
    54                    "passives": [],
    55                    "type": "Unknown"
    56                  }
    57                ]
    58              }
    59            }
    60          },
    61          {
    62            "server_opening_event": {
    63              "topologyId": "42",
    64              "address": "a:27017"
    65            }
    66          },
    67          {
    68            "server_opening_event": {
    69              "topologyId": "42",
    70              "address": "b:27017"
    71            }
    72          },
    73          {
    74            "server_description_changed_event": {
    75              "topologyId": "42",
    76              "address": "a:27017",
    77              "previousDescription": {
    78                "address": "a:27017",
    79                "arbiters": [],
    80                "hosts": [],
    81                "passives": [],
    82                "type": "Unknown"
    83              },
    84              "newDescription": {
    85                "address": "a:27017",
    86                "arbiters": [],
    87                "hosts": [
    88                  "a:27017",
    89                  "b:27017"
    90                ],
    91                "passives": [],
    92                "primary": "b:27017",
    93                "setName": "rs",
    94                "type": "RSSecondary"
    95              }
    96            }
    97          },
    98          {
    99            "topology_description_changed_event": {
   100              "topologyId": "42",
   101              "previousDescription": {
   102                "topologyType": "Unknown",
   103                "servers": [
   104                  {
   105                    "address": "a:27017",
   106                    "arbiters": [],
   107                    "hosts": [],
   108                    "passives": [],
   109                    "type": "Unknown"
   110                  },
   111                  {
   112                    "address": "b:27017",
   113                    "arbiters": [],
   114                    "hosts": [],
   115                    "passives": [],
   116                    "type": "Unknown"
   117                  }
   118                ]
   119              },
   120              "newDescription": {
   121                "topologyType": "ReplicaSetNoPrimary",
   122                "setName": "rs",
   123                "servers": [
   124                  {
   125                    "address": "a:27017",
   126                    "arbiters": [],
   127                    "hosts": [
   128                      "a:27017",
   129                      "b:27017"
   130                    ],
   131                    "passives": [],
   132                    "primary": "b:27017",
   133                    "setName": "rs",
   134                    "type": "RSSecondary"
   135                  },
   136                  {
   137                    "address": "b:27017",
   138                    "arbiters": [],
   139                    "hosts": [],
   140                    "passives": [],
   141                    "type": "PossiblePrimary"
   142                  }
   143                ]
   144              }
   145            }
   146          }
   147        ]
   148      }
   149    }
   150  ]
   151}

View as plain text