...

Text file src/go.mongodb.org/mongo-driver/testdata/server-discovery-and-monitoring/rs/primary_to_no_primary_mismatched_me.yml

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

     1description: "Primary to no primary with mismatched me"
     2
     3uri: "mongodb://a/?replicaSet=rs"
     4
     5phases: [
     6
     7    {
     8        responses: [
     9
    10                ["a:27017", {
    11
    12                    ok: 1,
    13                    helloOk: true,
    14                    isWritablePrimary: true,
    15                    hosts: ["a:27017", "b:27017"],
    16                    me: "a:27017",
    17                    setName: "rs",
    18                    minWireVersion: 0,
    19                    maxWireVersion: 6
    20                }]
    21        ],
    22
    23        outcome: {
    24
    25            servers: {
    26
    27                "a:27017": {
    28
    29                    type: "RSPrimary",
    30                    setName: "rs"
    31                },
    32
    33                "b:27017": {
    34
    35                    type: "Unknown",
    36                    setName:
    37                }
    38            },
    39            topologyType: "ReplicaSetWithPrimary",
    40            logicalSessionTimeoutMinutes: null,
    41            setName: "rs"
    42        }
    43    },
    44    {
    45        responses: [
    46
    47                ["a:27017", {
    48
    49                    ok: 1,
    50                    helloOk: true,
    51                    isWritablePrimary: true,
    52                    hosts: ["c:27017", "d:27017"],
    53                    me : "c:27017",
    54                    setName: "rs",
    55                    minWireVersion: 0,
    56                    maxWireVersion: 6
    57                }]
    58        ],
    59
    60        outcome: {
    61
    62            servers: {
    63
    64                "c:27017": {
    65
    66                    type: "Unknown",
    67                    setName:
    68                },
    69
    70                "d:27017": {
    71
    72                    type: "Unknown",
    73                    setName:
    74                }
    75            },
    76            topologyType: "ReplicaSetNoPrimary",
    77            logicalSessionTimeoutMinutes: null,
    78            setName: "rs"
    79        }
    80    }
    81]

View as plain text