Skip to content

Commit

Permalink
Merge pull request mongodb#28 from ajdavis/remove-max-electionid
Browse files Browse the repository at this point in the history
remove-max-electionid
  • Loading branch information
ajdavis committed May 8, 2015
2 parents 77f5d5b + b8b85b6 commit 1c55400
Show file tree
Hide file tree
Showing 87 changed files with 4 additions and 152 deletions.
5 changes: 4 additions & 1 deletion source/server-discovery-and-monitoring/tests/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ A response is a pair of values:
- The source, for example "a:27017".
This is the address the client sent the "ismaster" command to.
- An ismaster response, for example `{ok: 1, ismaster: true}`.
An empty response like `{}` indicates a network error
If the response includes an electionId it is shown in extended JSON like
`{"$oid": "000000000000000000000002"}`.
The empty response `{}` indicates a network error
when attempting to call "ismaster".

An "outcome" represents the correct TopologyDescription that results from
Expand All @@ -75,6 +77,7 @@ current TopologyDescription. It has the following keys:

- type: A ServerType name, like "RSSecondary".
- setName: A string with the expected replica set name, or null.
- electionId: null, or an ObjectId.

Use as unittests
----------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"phases": [
{
"outcome": {
"maxElectionId": null,
"servers": {
"a:27017": {
"setName": "rs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ phases: [
},

topologyType: "ReplicaSetWithPrimary",
maxElectionId:,
setName: "rs"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"phases": [
{
"outcome": {
"maxElectionId": null,
"servers": {
"a:27017": {
"setName": "rs",
Expand Down Expand Up @@ -36,7 +35,6 @@
},
{
"outcome": {
"maxElectionId": null,
"servers": {
"a:27017": {
"setName": "rs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ phases: [
},

topologyType: "ReplicaSetWithPrimary",
maxElectionId:,
setName: "rs"
}
},
Expand Down Expand Up @@ -72,7 +71,6 @@ phases: [
},

topologyType: "ReplicaSetWithPrimary",
maxElectionId:,
setName: "rs"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"phases": [
{
"outcome": {
"maxElectionId": null,
"servers": {
"a:27017": {
"setName": "rs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ phases: [
},

topologyType: "ReplicaSetWithPrimary",
maxElectionId:,
setName: "rs"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"phases": [
{
"outcome": {
"maxElectionId": null,
"servers": {
"a:27017": {
"setName": null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ phases: [
},

topologyType: "ReplicaSetNoPrimary",
maxElectionId:,
setName: "rs"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"phases": [
{
"outcome": {
"maxElectionId": null,
"servers": {
"a:27017": {
"setName": "rs",
Expand Down Expand Up @@ -40,7 +39,6 @@
},
{
"outcome": {
"maxElectionId": null,
"servers": {
"a:27017": {
"setName": "rs",
Expand Down Expand Up @@ -82,7 +80,6 @@
},
{
"outcome": {
"maxElectionId": null,
"servers": {
"b:27017": {
"setName": "rs",
Expand Down Expand Up @@ -123,7 +120,6 @@
},
{
"outcome": {
"maxElectionId": null,
"servers": {
"b:27017": {
"setName": "rs",
Expand Down
4 changes: 0 additions & 4 deletions source/server-discovery-and-monitoring/tests/rs/discovery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ phases: [
},

topologyType: "ReplicaSetNoPrimary",
maxElectionId:,
setName: "rs"
}
},
Expand Down Expand Up @@ -92,7 +91,6 @@ phases: [
},

topologyType: "ReplicaSetNoPrimary",
maxElectionId:,
setName: "rs"
}
},
Expand Down Expand Up @@ -141,7 +139,6 @@ phases: [
},

topologyType: "ReplicaSetWithPrimary",
maxElectionId:,
setName: "rs"
}
},
Expand Down Expand Up @@ -192,7 +189,6 @@ phases: [
},

topologyType: "ReplicaSetWithPrimary",
maxElectionId:,
setName: "rs"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"phases": [
{
"outcome": {
"maxElectionId": {
"$oid": "000000000000000000000001"
},
"servers": {
"a:27017": {
"electionId": null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ phases: [
},
topologyType: "ReplicaSetWithPrimary",
setName: "rs",
maxElectionId: {"$oid": "000000000000000000000001"}
}
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"phases": [
{
"outcome": {
"maxElectionId": null,
"servers": {
"a:27017": {
"setName": null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ phases: [
},

topologyType: "ReplicaSetNoPrimary",
maxElectionId:,
setName: "rs"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"phases": [
{
"outcome": {
"maxElectionId": null,
"servers": {
"b:27017": {
"setName": null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ phases: [
},

topologyType: "ReplicaSetNoPrimary",
maxElectionId:,
setName: "rs"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"phases": [
{
"outcome": {
"maxElectionId": null,
"servers": {
"a:27017": {
"electionId": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ phases: [
},
topologyType: "ReplicaSetNoPrimary",
setName: "rs",
maxElectionId:
}
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"phases": [
{
"outcome": {
"maxElectionId": null,
"servers": {
"a:27017": {
"setName": "rs",
Expand Down Expand Up @@ -34,7 +33,6 @@
},
{
"outcome": {
"maxElectionId": null,
"servers": {
"a:27017": {
"setName": "rs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ phases: [
},

topologyType: "ReplicaSetWithPrimary",
maxElectionId:,
setName: "rs"
}
},
Expand Down Expand Up @@ -63,7 +62,6 @@ phases: [
},

topologyType: "ReplicaSetWithPrimary",
maxElectionId:,
setName: "rs"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"phases": [
{
"outcome": {
"maxElectionId": null,
"servers": {
"a:27017": {
"setName": null,
Expand All @@ -25,7 +24,6 @@
},
{
"outcome": {
"maxElectionId": null,
"servers": {
"a:27017": {
"setName": "rs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ phases: [
},

topologyType: "Unknown",
maxElectionId:,
setName:
}
},
Expand Down Expand Up @@ -55,7 +54,6 @@ phases: [
},

topologyType: "ReplicaSetWithPrimary",
maxElectionId:,
setName: "rs"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"phases": [
{
"outcome": {
"maxElectionId": null,
"servers": {
"a:27017": {
"setName": "rs",
Expand Down Expand Up @@ -34,7 +33,6 @@
},
{
"outcome": {
"maxElectionId": null,
"servers": {
"a:27017": {
"setName": null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ phases: [
},

topologyType: "ReplicaSetWithPrimary",
maxElectionId:,
setName: "rs"
}
},
Expand Down Expand Up @@ -69,7 +68,6 @@ phases: [
},

topologyType: "ReplicaSetWithPrimary",
maxElectionId:,
setName: "rs"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"phases": [
{
"outcome": {
"maxElectionId": {
"$oid": "000000000000000000000001"
},
"servers": {
"a:27017": {
"electionId": {
Expand Down Expand Up @@ -43,9 +40,6 @@
},
{
"outcome": {
"maxElectionId": {
"$oid": "000000000000000000000002"
},
"servers": {
"a:27017": {
"electionId": null,
Expand Down Expand Up @@ -83,9 +77,6 @@
},
{
"outcome": {
"maxElectionId": {
"$oid": "000000000000000000000002"
},
"servers": {
"a:27017": {
"electionId": null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ phases: [
},
topologyType: "ReplicaSetWithPrimary",
setName: "rs",
maxElectionId: {"$oid": "000000000000000000000001"}
}
},

Expand Down Expand Up @@ -62,7 +61,6 @@ phases: [
},
topologyType: "ReplicaSetWithPrimary",
setName: "rs",
maxElectionId: {"$oid": "000000000000000000000002"}
}
},

Expand Down Expand Up @@ -92,7 +90,6 @@ phases: [
},
topologyType: "ReplicaSetWithPrimary",
setName: "rs",
maxElectionId: {"$oid": "000000000000000000000002"}
}
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"phases": [
{
"outcome": {
"maxElectionId": null,
"servers": {
"a:27017": {
"setName": "rs",
Expand Down Expand Up @@ -34,7 +33,6 @@
},
{
"outcome": {
"maxElectionId": null,
"servers": {
"a:27017": {
"setName": "rs",
Expand Down
Loading

0 comments on commit 1c55400

Please sign in to comment.