diff --git a/source/max-staleness/tests/ReplicaSetNoPrimary/DefaultNoMaxStaleness.json b/source/max-staleness/tests/ReplicaSetNoPrimary/DefaultNoMaxStaleness.json index 5afebbbdcb..db8b061b30 100644 --- a/source/max-staleness/tests/ReplicaSetNoPrimary/DefaultNoMaxStaleness.json +++ b/source/max-staleness/tests/ReplicaSetNoPrimary/DefaultNoMaxStaleness.json @@ -7,7 +7,7 @@ "type": "RSSecondary", "avg_rtt_ms": 50, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1000001" @@ -19,7 +19,7 @@ "type": "RSSecondary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1" @@ -37,7 +37,7 @@ "type": "RSSecondary", "avg_rtt_ms": 50, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1000001" @@ -49,7 +49,7 @@ "type": "RSSecondary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1" @@ -63,7 +63,7 @@ "type": "RSSecondary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1" diff --git a/source/max-staleness/tests/ReplicaSetNoPrimary/DefaultNoMaxStaleness.yml b/source/max-staleness/tests/ReplicaSetNoPrimary/DefaultNoMaxStaleness.yml index 5f9750ef7b..793aa10eaa 100644 --- a/source/max-staleness/tests/ReplicaSetNoPrimary/DefaultNoMaxStaleness.yml +++ b/source/max-staleness/tests/ReplicaSetNoPrimary/DefaultNoMaxStaleness.yml @@ -8,14 +8,14 @@ topology_description: type: RSSecondary avg_rtt_ms: 50 # Too far. lastUpdateTime: 0 - maxWireVersion: 6 + maxWireVersion: 21 lastWrite: {lastWriteDate: {$numberLong: "1000001"}} - &2 address: b:27017 type: RSSecondary avg_rtt_ms: 5 lastUpdateTime: 0 - maxWireVersion: 6 + maxWireVersion: 21 lastWrite: {lastWriteDate: {$numberLong: "1"}} # Very stale. read_preference: mode: Nearest diff --git a/source/max-staleness/tests/ReplicaSetNoPrimary/LastUpdateTime.json b/source/max-staleness/tests/ReplicaSetNoPrimary/LastUpdateTime.json index 492d8a2f62..10b6f28786 100644 --- a/source/max-staleness/tests/ReplicaSetNoPrimary/LastUpdateTime.json +++ b/source/max-staleness/tests/ReplicaSetNoPrimary/LastUpdateTime.json @@ -13,7 +13,7 @@ "$numberLong": "125002" } }, - "maxWireVersion": 6 + "maxWireVersion": 21 }, { "address": "b:27017", @@ -25,7 +25,7 @@ "$numberLong": "2" } }, - "maxWireVersion": 6 + "maxWireVersion": 21 }, { "address": "c:27017", @@ -37,7 +37,7 @@ "$numberLong": "1" } }, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] }, @@ -56,7 +56,7 @@ "$numberLong": "125002" } }, - "maxWireVersion": 6 + "maxWireVersion": 21 }, { "address": "b:27017", @@ -68,7 +68,7 @@ "$numberLong": "2" } }, - "maxWireVersion": 6 + "maxWireVersion": 21 } ], "in_latency_window": [ @@ -82,7 +82,7 @@ "$numberLong": "125002" } }, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] } diff --git a/source/max-staleness/tests/ReplicaSetNoPrimary/LastUpdateTime.yml b/source/max-staleness/tests/ReplicaSetNoPrimary/LastUpdateTime.yml index 8bb42d8c62..2016941713 100644 --- a/source/max-staleness/tests/ReplicaSetNoPrimary/LastUpdateTime.yml +++ b/source/max-staleness/tests/ReplicaSetNoPrimary/LastUpdateTime.yml @@ -8,21 +8,21 @@ topology_description: avg_rtt_ms: 5 lastUpdateTime: 1 lastWrite: {lastWriteDate: {$numberLong: "125002"}} - maxWireVersion: 6 + maxWireVersion: 21 - &2 address: b:27017 type: RSSecondary avg_rtt_ms: 50 # Too far. lastUpdateTime: 25002 # Not used when there's no primary. lastWrite: {lastWriteDate: {$numberLong: "2"}} # 125 sec stale + 25 sec heartbeat <= 150 sec maxStaleness. - maxWireVersion: 6 + maxWireVersion: 21 - &3 address: c:27017 type: RSSecondary avg_rtt_ms: 5 lastUpdateTime: 25001 lastWrite: {lastWriteDate: {$numberLong: "1"}} # Too stale. - maxWireVersion: 6 + maxWireVersion: 21 read_preference: mode: Nearest maxStalenessSeconds: 150 diff --git a/source/max-staleness/tests/ReplicaSetNoPrimary/Nearest.json b/source/max-staleness/tests/ReplicaSetNoPrimary/Nearest.json index 6602561c1d..38b9986500 100644 --- a/source/max-staleness/tests/ReplicaSetNoPrimary/Nearest.json +++ b/source/max-staleness/tests/ReplicaSetNoPrimary/Nearest.json @@ -13,7 +13,7 @@ "$numberLong": "125002" } }, - "maxWireVersion": 6 + "maxWireVersion": 21 }, { "address": "b:27017", @@ -25,7 +25,7 @@ "$numberLong": "2" } }, - "maxWireVersion": 6 + "maxWireVersion": 21 }, { "address": "c:27017", @@ -37,7 +37,7 @@ "$numberLong": "1" } }, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] }, @@ -56,7 +56,7 @@ "$numberLong": "125002" } }, - "maxWireVersion": 6 + "maxWireVersion": 21 }, { "address": "b:27017", @@ -68,7 +68,7 @@ "$numberLong": "2" } }, - "maxWireVersion": 6 + "maxWireVersion": 21 } ], "in_latency_window": [ @@ -82,7 +82,7 @@ "$numberLong": "125002" } }, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] } diff --git a/source/max-staleness/tests/ReplicaSetNoPrimary/Nearest.yml b/source/max-staleness/tests/ReplicaSetNoPrimary/Nearest.yml index 7c3fbe5eba..783831f477 100644 --- a/source/max-staleness/tests/ReplicaSetNoPrimary/Nearest.yml +++ b/source/max-staleness/tests/ReplicaSetNoPrimary/Nearest.yml @@ -8,21 +8,21 @@ topology_description: avg_rtt_ms: 5 lastUpdateTime: 0 lastWrite: {lastWriteDate: {$numberLong: "125002"}} - maxWireVersion: 6 + maxWireVersion: 21 - &2 address: b:27017 type: RSSecondary avg_rtt_ms: 50 # Too far. lastUpdateTime: 0 lastWrite: {lastWriteDate: {$numberLong: "2"}} # 125 sec stale + 25 sec heartbeat <= 150 sec maxStaleness. - maxWireVersion: 6 + maxWireVersion: 21 - &3 address: c:27017 avg_rtt_ms: 5 lastUpdateTime: 0 type: RSSecondary lastWrite: {lastWriteDate: {$numberLong: "1"}} # Too stale. - maxWireVersion: 6 + maxWireVersion: 21 read_preference: mode: Nearest maxStalenessSeconds: 150 diff --git a/source/max-staleness/tests/ReplicaSetNoPrimary/Nearest2.json b/source/max-staleness/tests/ReplicaSetNoPrimary/Nearest2.json index 16d9a673bd..586b47ccd2 100644 --- a/source/max-staleness/tests/ReplicaSetNoPrimary/Nearest2.json +++ b/source/max-staleness/tests/ReplicaSetNoPrimary/Nearest2.json @@ -13,7 +13,7 @@ "$numberLong": "125002" } }, - "maxWireVersion": 6 + "maxWireVersion": 21 }, { "address": "b:27017", @@ -25,7 +25,7 @@ "$numberLong": "2" } }, - "maxWireVersion": 6 + "maxWireVersion": 21 }, { "address": "c:27017", @@ -37,7 +37,7 @@ "$numberLong": "1" } }, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] }, @@ -56,7 +56,7 @@ "$numberLong": "125002" } }, - "maxWireVersion": 6 + "maxWireVersion": 21 }, { "address": "b:27017", @@ -68,7 +68,7 @@ "$numberLong": "2" } }, - "maxWireVersion": 6 + "maxWireVersion": 21 } ], "in_latency_window": [ @@ -82,7 +82,7 @@ "$numberLong": "2" } }, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] } diff --git a/source/max-staleness/tests/ReplicaSetNoPrimary/Nearest2.yml b/source/max-staleness/tests/ReplicaSetNoPrimary/Nearest2.yml index e162f04c93..867b7706a4 100644 --- a/source/max-staleness/tests/ReplicaSetNoPrimary/Nearest2.yml +++ b/source/max-staleness/tests/ReplicaSetNoPrimary/Nearest2.yml @@ -8,21 +8,21 @@ topology_description: avg_rtt_ms: 50 # Too far. lastUpdateTime: 0 lastWrite: {lastWriteDate: {$numberLong: "125002"}} - maxWireVersion: 6 + maxWireVersion: 21 - &2 address: b:27017 type: RSSecondary avg_rtt_ms: 5 lastUpdateTime: 0 lastWrite: {lastWriteDate: {$numberLong: "2"}} # 125 sec stale + 25 sec heartbeat <= 150 sec maxStaleness. - maxWireVersion: 6 + maxWireVersion: 21 - &3 address: c:27017 avg_rtt_ms: 5 lastUpdateTime: 0 type: RSSecondary lastWrite: {lastWriteDate: {$numberLong: "1"}} # Too stale. - maxWireVersion: 6 + maxWireVersion: 21 read_preference: mode: Nearest maxStalenessSeconds: 150 diff --git a/source/max-staleness/tests/ReplicaSetNoPrimary/OneKnownTwoUnavailable.json b/source/max-staleness/tests/ReplicaSetNoPrimary/OneKnownTwoUnavailable.json index 54f318872f..15a62090e3 100644 --- a/source/max-staleness/tests/ReplicaSetNoPrimary/OneKnownTwoUnavailable.json +++ b/source/max-staleness/tests/ReplicaSetNoPrimary/OneKnownTwoUnavailable.json @@ -17,7 +17,7 @@ { "address": "c:27017", "type": "RSSecondary", - "maxWireVersion": 6, + "maxWireVersion": 21, "avg_rtt_ms": 5, "lastWrite": { "lastWriteDate": { @@ -35,7 +35,7 @@ { "address": "c:27017", "type": "RSSecondary", - "maxWireVersion": 6, + "maxWireVersion": 21, "avg_rtt_ms": 5, "lastWrite": { "lastWriteDate": { @@ -48,7 +48,7 @@ { "address": "c:27017", "type": "RSSecondary", - "maxWireVersion": 6, + "maxWireVersion": 21, "avg_rtt_ms": 5, "lastWrite": { "lastWriteDate": { diff --git a/source/max-staleness/tests/ReplicaSetNoPrimary/OneKnownTwoUnavailable.yml b/source/max-staleness/tests/ReplicaSetNoPrimary/OneKnownTwoUnavailable.yml index c1d3b502b8..ccbec183ca 100644 --- a/source/max-staleness/tests/ReplicaSetNoPrimary/OneKnownTwoUnavailable.yml +++ b/source/max-staleness/tests/ReplicaSetNoPrimary/OneKnownTwoUnavailable.yml @@ -15,7 +15,7 @@ topology_description: - &3 address: c:27017 type: RSSecondary - maxWireVersion: 6 + maxWireVersion: 21 avg_rtt_ms: 5 lastWrite: {lastWriteDate: {$numberLong: "1"}} read_preference: diff --git a/source/max-staleness/tests/ReplicaSetNoPrimary/PrimaryPreferred.json b/source/max-staleness/tests/ReplicaSetNoPrimary/PrimaryPreferred.json index 7956b8e516..7c036f725c 100644 --- a/source/max-staleness/tests/ReplicaSetNoPrimary/PrimaryPreferred.json +++ b/source/max-staleness/tests/ReplicaSetNoPrimary/PrimaryPreferred.json @@ -8,7 +8,7 @@ "type": "RSSecondary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1000001" @@ -20,7 +20,7 @@ "type": "RSSecondary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1" @@ -39,7 +39,7 @@ "type": "RSSecondary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1000001" @@ -53,7 +53,7 @@ "type": "RSSecondary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1000001" diff --git a/source/max-staleness/tests/ReplicaSetNoPrimary/PrimaryPreferred.yml b/source/max-staleness/tests/ReplicaSetNoPrimary/PrimaryPreferred.yml index b4706e5523..c01aff6f79 100644 --- a/source/max-staleness/tests/ReplicaSetNoPrimary/PrimaryPreferred.yml +++ b/source/max-staleness/tests/ReplicaSetNoPrimary/PrimaryPreferred.yml @@ -9,14 +9,14 @@ topology_description: type: RSSecondary avg_rtt_ms: 5 lastUpdateTime: 0 - maxWireVersion: 6 + maxWireVersion: 21 lastWrite: {lastWriteDate: {$numberLong: "1000001"}} - &2 address: b:27017 type: RSSecondary avg_rtt_ms: 5 lastUpdateTime: 0 - maxWireVersion: 6 + maxWireVersion: 21 lastWrite: {lastWriteDate: {$numberLong: "1"}} # Very stale. read_preference: mode: PrimaryPreferred diff --git a/source/max-staleness/tests/ReplicaSetNoPrimary/PrimaryPreferred_tags.json b/source/max-staleness/tests/ReplicaSetNoPrimary/PrimaryPreferred_tags.json index 453dce6605..56fcb156bb 100644 --- a/source/max-staleness/tests/ReplicaSetNoPrimary/PrimaryPreferred_tags.json +++ b/source/max-staleness/tests/ReplicaSetNoPrimary/PrimaryPreferred_tags.json @@ -13,7 +13,7 @@ "$numberLong": "125002" } }, - "maxWireVersion": 6, + "maxWireVersion": 21, "tags": { "data_center": "tokyo" } @@ -28,7 +28,7 @@ "$numberLong": "1" } }, - "maxWireVersion": 6, + "maxWireVersion": 21, "tags": { "data_center": "nyc" } @@ -58,7 +58,7 @@ "$numberLong": "125002" } }, - "maxWireVersion": 6, + "maxWireVersion": 21, "tags": { "data_center": "tokyo" } @@ -75,7 +75,7 @@ "$numberLong": "125002" } }, - "maxWireVersion": 6, + "maxWireVersion": 21, "tags": { "data_center": "tokyo" } diff --git a/source/max-staleness/tests/ReplicaSetNoPrimary/PrimaryPreferred_tags.yml b/source/max-staleness/tests/ReplicaSetNoPrimary/PrimaryPreferred_tags.yml index cd285d5faf..a5df80ff36 100644 --- a/source/max-staleness/tests/ReplicaSetNoPrimary/PrimaryPreferred_tags.yml +++ b/source/max-staleness/tests/ReplicaSetNoPrimary/PrimaryPreferred_tags.yml @@ -12,7 +12,7 @@ topology_description: avg_rtt_ms: 5 lastUpdateTime: 0 lastWrite: {lastWriteDate: {$numberLong: "125002"}} - maxWireVersion: 6 + maxWireVersion: 21 tags: data_center: tokyo # Matches second tag set. - &2 @@ -21,7 +21,7 @@ topology_description: avg_rtt_ms: 5 lastUpdateTime: 0 lastWrite: {lastWriteDate: {$numberLong: "1"}} # Too stale. - maxWireVersion: 6 + maxWireVersion: 21 tags: data_center: nyc read_preference: diff --git a/source/max-staleness/tests/ReplicaSetNoPrimary/Secondary.json b/source/max-staleness/tests/ReplicaSetNoPrimary/Secondary.json index b383f275dc..5a4b0c8226 100644 --- a/source/max-staleness/tests/ReplicaSetNoPrimary/Secondary.json +++ b/source/max-staleness/tests/ReplicaSetNoPrimary/Secondary.json @@ -8,7 +8,7 @@ "type": "RSSecondary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "125002" @@ -23,7 +23,7 @@ "type": "RSSecondary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "2" @@ -38,7 +38,7 @@ "type": "RSSecondary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1" @@ -53,7 +53,7 @@ "type": "RSSecondary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "2" @@ -80,7 +80,7 @@ "type": "RSSecondary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "2" @@ -97,7 +97,7 @@ "type": "RSSecondary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "2" diff --git a/source/max-staleness/tests/ReplicaSetNoPrimary/Secondary.yml b/source/max-staleness/tests/ReplicaSetNoPrimary/Secondary.yml index 88c5ab549d..93e81841b4 100644 --- a/source/max-staleness/tests/ReplicaSetNoPrimary/Secondary.yml +++ b/source/max-staleness/tests/ReplicaSetNoPrimary/Secondary.yml @@ -9,7 +9,7 @@ topology_description: type: RSSecondary avg_rtt_ms: 5 lastUpdateTime: 0 - maxWireVersion: 6 + maxWireVersion: 21 lastWrite: {lastWriteDate: {$numberLong: "125002"}} tags: data_center: tokyo # No match, but its lastWriteDate is used in estimate. @@ -18,7 +18,7 @@ topology_description: type: RSSecondary avg_rtt_ms: 5 lastUpdateTime: 0 - maxWireVersion: 6 + maxWireVersion: 21 lastWrite: {lastWriteDate: {$numberLong: "2"}} # 125 sec stale + 25 sec heartbeat <= 150 sec maxStaleness. tags: data_center: nyc @@ -27,7 +27,7 @@ topology_description: type: RSSecondary avg_rtt_ms: 5 lastUpdateTime: 0 - maxWireVersion: 6 + maxWireVersion: 21 lastWrite: {lastWriteDate: {$numberLong: "1"}} # Too stale. tags: data_center: nyc @@ -36,7 +36,7 @@ topology_description: type: RSSecondary avg_rtt_ms: 5 lastUpdateTime: 0 - maxWireVersion: 6 + maxWireVersion: 21 lastWrite: {lastWriteDate: {$numberLong: "2"}} tags: data_center: tokyo # No match. diff --git a/source/max-staleness/tests/ReplicaSetNoPrimary/SecondaryPreferred.json b/source/max-staleness/tests/ReplicaSetNoPrimary/SecondaryPreferred.json index 7bce7d0aa4..19a948e928 100644 --- a/source/max-staleness/tests/ReplicaSetNoPrimary/SecondaryPreferred.json +++ b/source/max-staleness/tests/ReplicaSetNoPrimary/SecondaryPreferred.json @@ -7,7 +7,7 @@ "type": "RSSecondary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1000001" @@ -19,7 +19,7 @@ "type": "RSSecondary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1" @@ -38,7 +38,7 @@ "type": "RSSecondary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1000001" @@ -52,7 +52,7 @@ "type": "RSSecondary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1000001" diff --git a/source/max-staleness/tests/ReplicaSetNoPrimary/SecondaryPreferred.yml b/source/max-staleness/tests/ReplicaSetNoPrimary/SecondaryPreferred.yml index 0860a568ea..f997882bc0 100644 --- a/source/max-staleness/tests/ReplicaSetNoPrimary/SecondaryPreferred.yml +++ b/source/max-staleness/tests/ReplicaSetNoPrimary/SecondaryPreferred.yml @@ -8,14 +8,14 @@ topology_description: type: RSSecondary avg_rtt_ms: 5 lastUpdateTime: 0 - maxWireVersion: 6 + maxWireVersion: 21 lastWrite: {lastWriteDate: {$numberLong: "1000001"}} - &2 address: b:27017 type: RSSecondary avg_rtt_ms: 5 lastUpdateTime: 0 - maxWireVersion: 6 + maxWireVersion: 21 lastWrite: {lastWriteDate: {$numberLong: "1"}} # Very stale. read_preference: mode: SecondaryPreferred diff --git a/source/max-staleness/tests/ReplicaSetNoPrimary/SecondaryPreferred_tags.json b/source/max-staleness/tests/ReplicaSetNoPrimary/SecondaryPreferred_tags.json index 32c9ca770b..b4633d88f3 100644 --- a/source/max-staleness/tests/ReplicaSetNoPrimary/SecondaryPreferred_tags.json +++ b/source/max-staleness/tests/ReplicaSetNoPrimary/SecondaryPreferred_tags.json @@ -8,7 +8,7 @@ "type": "RSSecondary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "125002" @@ -23,7 +23,7 @@ "type": "RSSecondary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "2" @@ -38,7 +38,7 @@ "type": "RSSecondary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1" @@ -53,7 +53,7 @@ "type": "RSSecondary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "2" @@ -80,7 +80,7 @@ "type": "RSSecondary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "2" @@ -97,7 +97,7 @@ "type": "RSSecondary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "2" diff --git a/source/max-staleness/tests/ReplicaSetNoPrimary/SecondaryPreferred_tags.yml b/source/max-staleness/tests/ReplicaSetNoPrimary/SecondaryPreferred_tags.yml index 5a13cc7323..f4a6c8f6b6 100644 --- a/source/max-staleness/tests/ReplicaSetNoPrimary/SecondaryPreferred_tags.yml +++ b/source/max-staleness/tests/ReplicaSetNoPrimary/SecondaryPreferred_tags.yml @@ -9,7 +9,7 @@ topology_description: type: RSSecondary avg_rtt_ms: 5 lastUpdateTime: 0 - maxWireVersion: 6 + maxWireVersion: 21 lastWrite: {lastWriteDate: {$numberLong: "125002"}} tags: data_center: tokyo # No match, but its lastWriteDate is used in estimate. @@ -18,7 +18,7 @@ topology_description: type: RSSecondary avg_rtt_ms: 5 lastUpdateTime: 0 - maxWireVersion: 6 + maxWireVersion: 21 lastWrite: {lastWriteDate: {$numberLong: "2"}} # 125 sec stale + 25 sec heartbeat <= 150 sec maxStaleness. tags: data_center: nyc @@ -27,7 +27,7 @@ topology_description: type: RSSecondary avg_rtt_ms: 5 lastUpdateTime: 0 - maxWireVersion: 6 + maxWireVersion: 21 lastWrite: {lastWriteDate: {$numberLong: "1"}} # Too stale. tags: data_center: nyc @@ -36,7 +36,7 @@ topology_description: type: RSSecondary avg_rtt_ms: 5 lastUpdateTime: 0 - maxWireVersion: 6 + maxWireVersion: 21 lastWrite: {lastWriteDate: {$numberLong: "2"}} tags: data_center: tokyo # No match. diff --git a/source/max-staleness/tests/ReplicaSetNoPrimary/ZeroMaxStaleness.json b/source/max-staleness/tests/ReplicaSetNoPrimary/ZeroMaxStaleness.json index fd84cd1193..ccb916f107 100644 --- a/source/max-staleness/tests/ReplicaSetNoPrimary/ZeroMaxStaleness.json +++ b/source/max-staleness/tests/ReplicaSetNoPrimary/ZeroMaxStaleness.json @@ -7,7 +7,7 @@ "type": "RSSecondary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "2" @@ -19,7 +19,7 @@ "type": "RSSecondary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1" diff --git a/source/max-staleness/tests/ReplicaSetNoPrimary/ZeroMaxStaleness.yml b/source/max-staleness/tests/ReplicaSetNoPrimary/ZeroMaxStaleness.yml index e37f6b20b1..e6be41ca67 100644 --- a/source/max-staleness/tests/ReplicaSetNoPrimary/ZeroMaxStaleness.yml +++ b/source/max-staleness/tests/ReplicaSetNoPrimary/ZeroMaxStaleness.yml @@ -8,14 +8,14 @@ topology_description: type: RSSecondary avg_rtt_ms: 5 lastUpdateTime: 0 - maxWireVersion: 6 + maxWireVersion: 21 lastWrite: {lastWriteDate: {$numberLong: "2"}} - &2 address: b:27017 type: RSSecondary avg_rtt_ms: 5 lastUpdateTime: 0 - maxWireVersion: 6 + maxWireVersion: 21 lastWrite: {lastWriteDate: {$numberLong: "1"}} read_preference: mode: Nearest diff --git a/source/max-staleness/tests/ReplicaSetWithPrimary/DefaultNoMaxStaleness.json b/source/max-staleness/tests/ReplicaSetWithPrimary/DefaultNoMaxStaleness.json index 35eaa9d69d..00137cf69e 100644 --- a/source/max-staleness/tests/ReplicaSetWithPrimary/DefaultNoMaxStaleness.json +++ b/source/max-staleness/tests/ReplicaSetWithPrimary/DefaultNoMaxStaleness.json @@ -7,7 +7,7 @@ "type": "RSPrimary", "avg_rtt_ms": 50, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1000001" @@ -19,7 +19,7 @@ "type": "RSSecondary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1" @@ -37,7 +37,7 @@ "type": "RSPrimary", "avg_rtt_ms": 50, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1000001" @@ -49,7 +49,7 @@ "type": "RSSecondary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1" @@ -63,7 +63,7 @@ "type": "RSSecondary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1" diff --git a/source/max-staleness/tests/ReplicaSetWithPrimary/DefaultNoMaxStaleness.yml b/source/max-staleness/tests/ReplicaSetWithPrimary/DefaultNoMaxStaleness.yml index 67cc894931..1ea9b209c8 100644 --- a/source/max-staleness/tests/ReplicaSetWithPrimary/DefaultNoMaxStaleness.yml +++ b/source/max-staleness/tests/ReplicaSetWithPrimary/DefaultNoMaxStaleness.yml @@ -8,14 +8,14 @@ topology_description: type: RSPrimary avg_rtt_ms: 50 # Too far. lastUpdateTime: 0 - maxWireVersion: 6 + maxWireVersion: 21 lastWrite: {lastWriteDate: {$numberLong: "1000001"}} - &2 address: b:27017 type: RSSecondary avg_rtt_ms: 5 lastUpdateTime: 0 - maxWireVersion: 6 + maxWireVersion: 21 lastWrite: {lastWriteDate: {$numberLong: "1"}} # Very stale. read_preference: mode: Nearest diff --git a/source/max-staleness/tests/ReplicaSetWithPrimary/LastUpdateTime.json b/source/max-staleness/tests/ReplicaSetWithPrimary/LastUpdateTime.json index 18450beaed..9d1db2de65 100644 --- a/source/max-staleness/tests/ReplicaSetWithPrimary/LastUpdateTime.json +++ b/source/max-staleness/tests/ReplicaSetWithPrimary/LastUpdateTime.json @@ -13,7 +13,7 @@ "$numberLong": "2" } }, - "maxWireVersion": 6 + "maxWireVersion": 21 }, { "address": "b:27017", @@ -25,7 +25,7 @@ "$numberLong": "2" } }, - "maxWireVersion": 6 + "maxWireVersion": 21 }, { "address": "c:27017", @@ -37,7 +37,7 @@ "$numberLong": "1" } }, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] }, @@ -56,7 +56,7 @@ "$numberLong": "2" } }, - "maxWireVersion": 6 + "maxWireVersion": 21 }, { "address": "b:27017", @@ -68,7 +68,7 @@ "$numberLong": "2" } }, - "maxWireVersion": 6 + "maxWireVersion": 21 } ], "in_latency_window": [ @@ -82,7 +82,7 @@ "$numberLong": "2" } }, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] } diff --git a/source/max-staleness/tests/ReplicaSetWithPrimary/LastUpdateTime.yml b/source/max-staleness/tests/ReplicaSetWithPrimary/LastUpdateTime.yml index 694178bbd7..e4fbe1ff7d 100644 --- a/source/max-staleness/tests/ReplicaSetWithPrimary/LastUpdateTime.yml +++ b/source/max-staleness/tests/ReplicaSetWithPrimary/LastUpdateTime.yml @@ -8,7 +8,7 @@ topology_description: avg_rtt_ms: 50 # Too far. lastUpdateTime: 1 lastWrite: {lastWriteDate: {$numberLong: "2"}} - maxWireVersion: 6 + maxWireVersion: 21 - &2 address: b:27017 type: RSSecondary @@ -17,14 +17,14 @@ topology_description: # Updated 125 sec after primary, so 125 sec stale. # 125 sec stale + 25 sec heartbeat <= 150 sec maxStaleness. lastWrite: {lastWriteDate: {$numberLong: "2"}} - maxWireVersion: 6 + maxWireVersion: 21 - &3 address: c:27017 type: RSSecondary avg_rtt_ms: 5 lastUpdateTime: 125001 lastWrite: {lastWriteDate: {$numberLong: "1"}} # Too stale. - maxWireVersion: 6 + maxWireVersion: 21 read_preference: mode: Nearest maxStalenessSeconds: 150 diff --git a/source/max-staleness/tests/ReplicaSetWithPrimary/LongHeartbeat.json b/source/max-staleness/tests/ReplicaSetWithPrimary/LongHeartbeat.json index b9fb407f9e..b0636236cc 100644 --- a/source/max-staleness/tests/ReplicaSetWithPrimary/LongHeartbeat.json +++ b/source/max-staleness/tests/ReplicaSetWithPrimary/LongHeartbeat.json @@ -8,7 +8,7 @@ "type": "RSPrimary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1" @@ -20,7 +20,7 @@ "type": "RSSecondary", "avg_rtt_ms": 50, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1" @@ -39,7 +39,7 @@ "type": "RSPrimary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1" @@ -51,7 +51,7 @@ "type": "RSSecondary", "avg_rtt_ms": 50, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1" @@ -65,7 +65,7 @@ "type": "RSPrimary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1" diff --git a/source/max-staleness/tests/ReplicaSetWithPrimary/LongHeartbeat.yml b/source/max-staleness/tests/ReplicaSetWithPrimary/LongHeartbeat.yml index 89cab47444..1e479c32e0 100644 --- a/source/max-staleness/tests/ReplicaSetWithPrimary/LongHeartbeat.yml +++ b/source/max-staleness/tests/ReplicaSetWithPrimary/LongHeartbeat.yml @@ -10,14 +10,14 @@ topology_description: type: RSPrimary avg_rtt_ms: 5 lastUpdateTime: 0 - maxWireVersion: 6 + maxWireVersion: 21 lastWrite: {lastWriteDate: {$numberLong: "1"}} - &2 address: b:27017 type: RSSecondary avg_rtt_ms: 50 # Too far. lastUpdateTime: 0 - maxWireVersion: 6 + maxWireVersion: 21 lastWrite: {lastWriteDate: {$numberLong: "1"}} read_preference: mode: Nearest diff --git a/source/max-staleness/tests/ReplicaSetWithPrimary/LongHeartbeat2.json b/source/max-staleness/tests/ReplicaSetWithPrimary/LongHeartbeat2.json index b695e1caeb..76edfcb836 100644 --- a/source/max-staleness/tests/ReplicaSetWithPrimary/LongHeartbeat2.json +++ b/source/max-staleness/tests/ReplicaSetWithPrimary/LongHeartbeat2.json @@ -8,7 +8,7 @@ "type": "RSPrimary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1" @@ -20,7 +20,7 @@ "type": "RSSecondary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1" diff --git a/source/max-staleness/tests/ReplicaSetWithPrimary/LongHeartbeat2.yml b/source/max-staleness/tests/ReplicaSetWithPrimary/LongHeartbeat2.yml index c849a0eff9..836467bf1f 100644 --- a/source/max-staleness/tests/ReplicaSetWithPrimary/LongHeartbeat2.yml +++ b/source/max-staleness/tests/ReplicaSetWithPrimary/LongHeartbeat2.yml @@ -10,14 +10,14 @@ topology_description: type: RSPrimary avg_rtt_ms: 5 lastUpdateTime: 0 - maxWireVersion: 6 + maxWireVersion: 21 lastWrite: {lastWriteDate: {$numberLong: "1"}} - &2 address: b:27017 type: RSSecondary avg_rtt_ms: 5 lastUpdateTime: 0 - maxWireVersion: 6 + maxWireVersion: 21 lastWrite: {lastWriteDate: {$numberLong: "1"}} read_preference: mode: Nearest diff --git a/source/max-staleness/tests/ReplicaSetWithPrimary/MaxStalenessTooSmall.json b/source/max-staleness/tests/ReplicaSetWithPrimary/MaxStalenessTooSmall.json index 9b798d37da..aa936e3c67 100644 --- a/source/max-staleness/tests/ReplicaSetWithPrimary/MaxStalenessTooSmall.json +++ b/source/max-staleness/tests/ReplicaSetWithPrimary/MaxStalenessTooSmall.json @@ -8,7 +8,7 @@ "type": "RSPrimary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1" @@ -20,7 +20,7 @@ "type": "RSSecondary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1" diff --git a/source/max-staleness/tests/ReplicaSetWithPrimary/MaxStalenessTooSmall.yml b/source/max-staleness/tests/ReplicaSetWithPrimary/MaxStalenessTooSmall.yml index 82c8f81ae5..9edd4199bf 100644 --- a/source/max-staleness/tests/ReplicaSetWithPrimary/MaxStalenessTooSmall.yml +++ b/source/max-staleness/tests/ReplicaSetWithPrimary/MaxStalenessTooSmall.yml @@ -11,14 +11,14 @@ topology_description: type: RSPrimary avg_rtt_ms: 5 lastUpdateTime: 0 - maxWireVersion: 6 + maxWireVersion: 21 lastWrite: {lastWriteDate: {$numberLong: "1"}} - &2 address: b:27017 type: RSSecondary avg_rtt_ms: 5 lastUpdateTime: 0 - maxWireVersion: 6 + maxWireVersion: 21 lastWrite: {lastWriteDate: {$numberLong: "1"}} read_preference: mode: Nearest diff --git a/source/max-staleness/tests/ReplicaSetWithPrimary/MaxStalenessWithModePrimary.json b/source/max-staleness/tests/ReplicaSetWithPrimary/MaxStalenessWithModePrimary.json index 1fa7bb4dd0..c24752a7f1 100644 --- a/source/max-staleness/tests/ReplicaSetWithPrimary/MaxStalenessWithModePrimary.json +++ b/source/max-staleness/tests/ReplicaSetWithPrimary/MaxStalenessWithModePrimary.json @@ -7,7 +7,7 @@ "type": "RSPrimary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1" @@ -19,7 +19,7 @@ "type": "RSSecondary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1" diff --git a/source/max-staleness/tests/ReplicaSetWithPrimary/MaxStalenessWithModePrimary.yml b/source/max-staleness/tests/ReplicaSetWithPrimary/MaxStalenessWithModePrimary.yml index dd62017011..92358a702d 100644 --- a/source/max-staleness/tests/ReplicaSetWithPrimary/MaxStalenessWithModePrimary.yml +++ b/source/max-staleness/tests/ReplicaSetWithPrimary/MaxStalenessWithModePrimary.yml @@ -9,14 +9,14 @@ topology_description: type: RSPrimary avg_rtt_ms: 5 lastUpdateTime: 0 - maxWireVersion: 6 + maxWireVersion: 21 lastWrite: {lastWriteDate: {$numberLong: "1"}} - &2 address: b:27017 type: RSSecondary avg_rtt_ms: 5 lastUpdateTime: 0 - maxWireVersion: 6 + maxWireVersion: 21 lastWrite: {lastWriteDate: {$numberLong: "1"}} read_preference: maxStalenessSeconds: 120 diff --git a/source/max-staleness/tests/ReplicaSetWithPrimary/Nearest.json b/source/max-staleness/tests/ReplicaSetWithPrimary/Nearest.json index 198be4a681..d3a9535b09 100644 --- a/source/max-staleness/tests/ReplicaSetWithPrimary/Nearest.json +++ b/source/max-staleness/tests/ReplicaSetWithPrimary/Nearest.json @@ -13,7 +13,7 @@ "$numberLong": "125002" } }, - "maxWireVersion": 6 + "maxWireVersion": 21 }, { "address": "b:27017", @@ -25,7 +25,7 @@ "$numberLong": "2" } }, - "maxWireVersion": 6 + "maxWireVersion": 21 }, { "address": "c:27017", @@ -37,7 +37,7 @@ "$numberLong": "1" } }, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] }, @@ -56,7 +56,7 @@ "$numberLong": "125002" } }, - "maxWireVersion": 6 + "maxWireVersion": 21 }, { "address": "b:27017", @@ -68,7 +68,7 @@ "$numberLong": "2" } }, - "maxWireVersion": 6 + "maxWireVersion": 21 } ], "in_latency_window": [ @@ -82,7 +82,7 @@ "$numberLong": "125002" } }, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] } diff --git a/source/max-staleness/tests/ReplicaSetWithPrimary/Nearest.yml b/source/max-staleness/tests/ReplicaSetWithPrimary/Nearest.yml index 96eeb4b559..5ef6c720a5 100644 --- a/source/max-staleness/tests/ReplicaSetWithPrimary/Nearest.yml +++ b/source/max-staleness/tests/ReplicaSetWithPrimary/Nearest.yml @@ -8,21 +8,21 @@ topology_description: avg_rtt_ms: 5 lastUpdateTime: 0 lastWrite: {lastWriteDate: {$numberLong: "125002"}} - maxWireVersion: 6 + maxWireVersion: 21 - &2 address: b:27017 type: RSSecondary avg_rtt_ms: 50 # Too far. lastUpdateTime: 0 lastWrite: {lastWriteDate: {$numberLong: "2"}} # 125 sec stale + 25 sec heartbeat <= 150 sec maxStaleness. - maxWireVersion: 6 + maxWireVersion: 21 - &3 address: c:27017 avg_rtt_ms: 5 lastUpdateTime: 0 type: RSSecondary lastWrite: {lastWriteDate: {$numberLong: "1"}} # Too stale. - maxWireVersion: 6 + maxWireVersion: 21 read_preference: mode: Nearest maxStalenessSeconds: 150 diff --git a/source/max-staleness/tests/ReplicaSetWithPrimary/Nearest2.json b/source/max-staleness/tests/ReplicaSetWithPrimary/Nearest2.json index 3ae629c898..f91706e804 100644 --- a/source/max-staleness/tests/ReplicaSetWithPrimary/Nearest2.json +++ b/source/max-staleness/tests/ReplicaSetWithPrimary/Nearest2.json @@ -13,7 +13,7 @@ "$numberLong": "125002" } }, - "maxWireVersion": 6 + "maxWireVersion": 21 }, { "address": "b:27017", @@ -25,7 +25,7 @@ "$numberLong": "2" } }, - "maxWireVersion": 6 + "maxWireVersion": 21 }, { "address": "c:27017", @@ -37,7 +37,7 @@ "$numberLong": "1" } }, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] }, @@ -56,7 +56,7 @@ "$numberLong": "125002" } }, - "maxWireVersion": 6 + "maxWireVersion": 21 }, { "address": "b:27017", @@ -68,7 +68,7 @@ "$numberLong": "2" } }, - "maxWireVersion": 6 + "maxWireVersion": 21 } ], "in_latency_window": [ @@ -82,7 +82,7 @@ "$numberLong": "2" } }, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] } diff --git a/source/max-staleness/tests/ReplicaSetWithPrimary/Nearest2.yml b/source/max-staleness/tests/ReplicaSetWithPrimary/Nearest2.yml index 3ee119c3a7..7d4f706fc7 100644 --- a/source/max-staleness/tests/ReplicaSetWithPrimary/Nearest2.yml +++ b/source/max-staleness/tests/ReplicaSetWithPrimary/Nearest2.yml @@ -8,21 +8,21 @@ topology_description: avg_rtt_ms: 50 # Too far. lastUpdateTime: 0 lastWrite: {lastWriteDate: {$numberLong: "125002"}} - maxWireVersion: 6 + maxWireVersion: 21 - &2 address: b:27017 type: RSSecondary avg_rtt_ms: 5 lastUpdateTime: 0 lastWrite: {lastWriteDate: {$numberLong: "2"}} # 125 sec stale + 25 sec heartbeat <= 150 sec maxStaleness. - maxWireVersion: 6 + maxWireVersion: 21 - &3 address: c:27017 avg_rtt_ms: 5 lastUpdateTime: 0 type: RSSecondary lastWrite: {lastWriteDate: {$numberLong: "1"}} # Too stale. - maxWireVersion: 6 + maxWireVersion: 21 read_preference: mode: Nearest maxStalenessSeconds: 150 diff --git a/source/max-staleness/tests/ReplicaSetWithPrimary/Nearest_tags.json b/source/max-staleness/tests/ReplicaSetWithPrimary/Nearest_tags.json index 675df82631..4ed0b9ed2e 100644 --- a/source/max-staleness/tests/ReplicaSetWithPrimary/Nearest_tags.json +++ b/source/max-staleness/tests/ReplicaSetWithPrimary/Nearest_tags.json @@ -13,7 +13,7 @@ "$numberLong": "125002" } }, - "maxWireVersion": 6, + "maxWireVersion": 21, "tags": { "data_center": "tokyo" } @@ -28,7 +28,7 @@ "$numberLong": "1" } }, - "maxWireVersion": 6, + "maxWireVersion": 21, "tags": { "data_center": "nyc" } @@ -58,7 +58,7 @@ "$numberLong": "125002" } }, - "maxWireVersion": 6, + "maxWireVersion": 21, "tags": { "data_center": "tokyo" } @@ -75,7 +75,7 @@ "$numberLong": "125002" } }, - "maxWireVersion": 6, + "maxWireVersion": 21, "tags": { "data_center": "tokyo" } diff --git a/source/max-staleness/tests/ReplicaSetWithPrimary/Nearest_tags.yml b/source/max-staleness/tests/ReplicaSetWithPrimary/Nearest_tags.yml index ce2c3ab3f0..6db5d4362b 100644 --- a/source/max-staleness/tests/ReplicaSetWithPrimary/Nearest_tags.yml +++ b/source/max-staleness/tests/ReplicaSetWithPrimary/Nearest_tags.yml @@ -12,7 +12,7 @@ topology_description: avg_rtt_ms: 5 lastUpdateTime: 0 lastWrite: {lastWriteDate: {$numberLong: "125002"}} - maxWireVersion: 6 + maxWireVersion: 21 tags: data_center: tokyo - &2 @@ -21,7 +21,7 @@ topology_description: avg_rtt_ms: 5 lastUpdateTime: 0 lastWrite: {lastWriteDate: {$numberLong: "1"}} # Too stale. - maxWireVersion: 6 + maxWireVersion: 21 tags: data_center: nyc read_preference: diff --git a/source/max-staleness/tests/ReplicaSetWithPrimary/PrimaryPreferred.json b/source/max-staleness/tests/ReplicaSetWithPrimary/PrimaryPreferred.json index 795b47a111..7945530e6a 100644 --- a/source/max-staleness/tests/ReplicaSetWithPrimary/PrimaryPreferred.json +++ b/source/max-staleness/tests/ReplicaSetWithPrimary/PrimaryPreferred.json @@ -8,7 +8,7 @@ "type": "RSPrimary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1" @@ -20,7 +20,7 @@ "type": "RSSecondary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1" @@ -39,7 +39,7 @@ "type": "RSPrimary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1" @@ -53,7 +53,7 @@ "type": "RSPrimary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1" diff --git a/source/max-staleness/tests/ReplicaSetWithPrimary/PrimaryPreferred.yml b/source/max-staleness/tests/ReplicaSetWithPrimary/PrimaryPreferred.yml index c1594c410f..e38f33d7c1 100644 --- a/source/max-staleness/tests/ReplicaSetWithPrimary/PrimaryPreferred.yml +++ b/source/max-staleness/tests/ReplicaSetWithPrimary/PrimaryPreferred.yml @@ -9,14 +9,14 @@ topology_description: type: RSPrimary avg_rtt_ms: 5 lastUpdateTime: 0 - maxWireVersion: 6 + maxWireVersion: 21 lastWrite: {lastWriteDate: {$numberLong: "1"}} - &2 address: b:27017 type: RSSecondary avg_rtt_ms: 5 lastUpdateTime: 0 - maxWireVersion: 6 + maxWireVersion: 21 lastWrite: {lastWriteDate: {$numberLong: "1"}} read_preference: mode: PrimaryPreferred diff --git a/source/max-staleness/tests/ReplicaSetWithPrimary/SecondaryPreferred.json b/source/max-staleness/tests/ReplicaSetWithPrimary/SecondaryPreferred.json index 5455708a70..b433d6a430 100644 --- a/source/max-staleness/tests/ReplicaSetWithPrimary/SecondaryPreferred.json +++ b/source/max-staleness/tests/ReplicaSetWithPrimary/SecondaryPreferred.json @@ -7,7 +7,7 @@ "type": "RSPrimary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1000001" @@ -19,7 +19,7 @@ "type": "RSSecondary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1" @@ -38,7 +38,7 @@ "type": "RSPrimary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1000001" @@ -52,7 +52,7 @@ "type": "RSPrimary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1000001" diff --git a/source/max-staleness/tests/ReplicaSetWithPrimary/SecondaryPreferred.yml b/source/max-staleness/tests/ReplicaSetWithPrimary/SecondaryPreferred.yml index 33c25f4129..ff35b9bdab 100644 --- a/source/max-staleness/tests/ReplicaSetWithPrimary/SecondaryPreferred.yml +++ b/source/max-staleness/tests/ReplicaSetWithPrimary/SecondaryPreferred.yml @@ -8,14 +8,14 @@ topology_description: type: RSPrimary avg_rtt_ms: 5 lastUpdateTime: 0 - maxWireVersion: 6 + maxWireVersion: 21 lastWrite: {lastWriteDate: {$numberLong: "1000001"}} - &2 address: b:27017 type: RSSecondary avg_rtt_ms: 5 lastUpdateTime: 0 - maxWireVersion: 6 + maxWireVersion: 21 lastWrite: {lastWriteDate: {$numberLong: "1"}} # Very stale. read_preference: mode: SecondaryPreferred diff --git a/source/max-staleness/tests/ReplicaSetWithPrimary/SecondaryPreferred_tags.json b/source/max-staleness/tests/ReplicaSetWithPrimary/SecondaryPreferred_tags.json index 6670b54c89..e594af7832 100644 --- a/source/max-staleness/tests/ReplicaSetWithPrimary/SecondaryPreferred_tags.json +++ b/source/max-staleness/tests/ReplicaSetWithPrimary/SecondaryPreferred_tags.json @@ -8,7 +8,7 @@ "type": "RSPrimary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "125002" @@ -20,7 +20,7 @@ "type": "RSSecondary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "2" @@ -35,7 +35,7 @@ "type": "RSSecondary", "avg_rtt_ms": 50, "lastUpdateTime": 1, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1000001" @@ -50,7 +50,7 @@ "type": "RSSecondary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1" @@ -65,7 +65,7 @@ "type": "RSSecondary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "2" @@ -92,7 +92,7 @@ "type": "RSSecondary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "2" @@ -107,7 +107,7 @@ "type": "RSSecondary", "avg_rtt_ms": 50, "lastUpdateTime": 1, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1000001" @@ -124,7 +124,7 @@ "type": "RSSecondary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "2" diff --git a/source/max-staleness/tests/ReplicaSetWithPrimary/SecondaryPreferred_tags.yml b/source/max-staleness/tests/ReplicaSetWithPrimary/SecondaryPreferred_tags.yml index 05301d2109..4d17a4d7fd 100644 --- a/source/max-staleness/tests/ReplicaSetWithPrimary/SecondaryPreferred_tags.yml +++ b/source/max-staleness/tests/ReplicaSetWithPrimary/SecondaryPreferred_tags.yml @@ -9,14 +9,14 @@ topology_description: type: RSPrimary avg_rtt_ms: 5 lastUpdateTime: 0 - maxWireVersion: 6 + maxWireVersion: 21 lastWrite: {lastWriteDate: {$numberLong: "125002"}} - &2 address: b:27017 type: RSSecondary avg_rtt_ms: 5 lastUpdateTime: 0 - maxWireVersion: 6 + maxWireVersion: 21 lastWrite: {lastWriteDate: {$numberLong: "2"}} # 125 sec stale + 25 sec heartbeat <= 150 sec maxStaleness. tags: data_center: nyc @@ -25,7 +25,7 @@ topology_description: type: RSSecondary avg_rtt_ms: 50 # Too far. lastUpdateTime: 1 - maxWireVersion: 6 + maxWireVersion: 21 lastWrite: {lastWriteDate: {$numberLong: "1000001"}} # Not used in estimate since we have a primary. tags: data_center: nyc @@ -34,7 +34,7 @@ topology_description: type: RSSecondary avg_rtt_ms: 5 lastUpdateTime: 0 - maxWireVersion: 6 + maxWireVersion: 21 lastWrite: {lastWriteDate: {$numberLong: "1"}} # Too stale. tags: data_center: nyc @@ -43,7 +43,7 @@ topology_description: type: RSSecondary avg_rtt_ms: 5 lastUpdateTime: 0 - maxWireVersion: 6 + maxWireVersion: 21 lastWrite: {lastWriteDate: {$numberLong: "2"}} tags: data_center: tokyo # No match. diff --git a/source/max-staleness/tests/ReplicaSetWithPrimary/SecondaryPreferred_tags2.json b/source/max-staleness/tests/ReplicaSetWithPrimary/SecondaryPreferred_tags2.json index 642fee1fb3..bc0953c657 100644 --- a/source/max-staleness/tests/ReplicaSetWithPrimary/SecondaryPreferred_tags2.json +++ b/source/max-staleness/tests/ReplicaSetWithPrimary/SecondaryPreferred_tags2.json @@ -13,7 +13,7 @@ "$numberLong": "125002" } }, - "maxWireVersion": 6 + "maxWireVersion": 21 }, { "address": "b:27017", @@ -25,7 +25,7 @@ "$numberLong": "2" } }, - "maxWireVersion": 6, + "maxWireVersion": 21, "tags": { "data_center": "tokyo" } @@ -40,7 +40,7 @@ "$numberLong": "1" } }, - "maxWireVersion": 6, + "maxWireVersion": 21, "tags": { "data_center": "nyc" } @@ -70,7 +70,7 @@ "$numberLong": "2" } }, - "maxWireVersion": 6, + "maxWireVersion": 21, "tags": { "data_center": "tokyo" } @@ -87,7 +87,7 @@ "$numberLong": "2" } }, - "maxWireVersion": 6, + "maxWireVersion": 21, "tags": { "data_center": "tokyo" } diff --git a/source/max-staleness/tests/ReplicaSetWithPrimary/SecondaryPreferred_tags2.yml b/source/max-staleness/tests/ReplicaSetWithPrimary/SecondaryPreferred_tags2.yml index 00ed08c0af..82c5a799f7 100644 --- a/source/max-staleness/tests/ReplicaSetWithPrimary/SecondaryPreferred_tags2.yml +++ b/source/max-staleness/tests/ReplicaSetWithPrimary/SecondaryPreferred_tags2.yml @@ -12,14 +12,14 @@ topology_description: avg_rtt_ms: 5 lastUpdateTime: 0 lastWrite: {lastWriteDate: {$numberLong: "125002"}} - maxWireVersion: 6 + maxWireVersion: 21 - &2 address: b:27017 type: RSSecondary avg_rtt_ms: 5 lastUpdateTime: 0 lastWrite: {lastWriteDate: {$numberLong: "2"}} - maxWireVersion: 6 + maxWireVersion: 21 tags: data_center: tokyo - &3 @@ -28,7 +28,7 @@ topology_description: avg_rtt_ms: 5 lastUpdateTime: 0 lastWrite: {lastWriteDate: {$numberLong: "1"}} # Too stale. - maxWireVersion: 6 + maxWireVersion: 21 tags: data_center: nyc read_preference: diff --git a/source/max-staleness/tests/ReplicaSetWithPrimary/Secondary_tags.json b/source/max-staleness/tests/ReplicaSetWithPrimary/Secondary_tags.json index 502120dce6..2817cf9225 100644 --- a/source/max-staleness/tests/ReplicaSetWithPrimary/Secondary_tags.json +++ b/source/max-staleness/tests/ReplicaSetWithPrimary/Secondary_tags.json @@ -8,7 +8,7 @@ "type": "RSPrimary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "125002" @@ -20,7 +20,7 @@ "type": "RSSecondary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "2" @@ -35,7 +35,7 @@ "type": "RSSecondary", "avg_rtt_ms": 50, "lastUpdateTime": 1, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1000001" @@ -50,7 +50,7 @@ "type": "RSSecondary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1" @@ -65,7 +65,7 @@ "type": "RSSecondary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "2" @@ -92,7 +92,7 @@ "type": "RSSecondary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "2" @@ -107,7 +107,7 @@ "type": "RSSecondary", "avg_rtt_ms": 50, "lastUpdateTime": 1, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1000001" @@ -124,7 +124,7 @@ "type": "RSSecondary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "2" diff --git a/source/max-staleness/tests/ReplicaSetWithPrimary/Secondary_tags.yml b/source/max-staleness/tests/ReplicaSetWithPrimary/Secondary_tags.yml index 50650fea84..721cbc8a5d 100644 --- a/source/max-staleness/tests/ReplicaSetWithPrimary/Secondary_tags.yml +++ b/source/max-staleness/tests/ReplicaSetWithPrimary/Secondary_tags.yml @@ -9,14 +9,14 @@ topology_description: type: RSPrimary avg_rtt_ms: 5 lastUpdateTime: 0 - maxWireVersion: 6 + maxWireVersion: 21 lastWrite: {lastWriteDate: {$numberLong: "125002"}} - &2 address: b:27017 type: RSSecondary avg_rtt_ms: 5 lastUpdateTime: 0 - maxWireVersion: 6 + maxWireVersion: 21 lastWrite: {lastWriteDate: {$numberLong: "2"}} # 125 sec stale + 25 sec heartbeat <= 150 sec maxStaleness. tags: data_center: nyc @@ -25,7 +25,7 @@ topology_description: type: RSSecondary avg_rtt_ms: 50 # Too far. lastUpdateTime: 1 - maxWireVersion: 6 + maxWireVersion: 21 lastWrite: {lastWriteDate: {$numberLong: "1000001"}} # Not used in estimate since we have a primary. tags: data_center: nyc @@ -34,7 +34,7 @@ topology_description: type: RSSecondary avg_rtt_ms: 5 lastUpdateTime: 0 - maxWireVersion: 6 + maxWireVersion: 21 lastWrite: {lastWriteDate: {$numberLong: "1"}} # Too stale. tags: data_center: nyc @@ -43,7 +43,7 @@ topology_description: type: RSSecondary avg_rtt_ms: 5 lastUpdateTime: 0 - maxWireVersion: 6 + maxWireVersion: 21 lastWrite: {lastWriteDate: {$numberLong: "2"}} tags: data_center: tokyo # No match. diff --git a/source/max-staleness/tests/ReplicaSetWithPrimary/Secondary_tags2.json b/source/max-staleness/tests/ReplicaSetWithPrimary/Secondary_tags2.json index 6978a1807b..7aa487a078 100644 --- a/source/max-staleness/tests/ReplicaSetWithPrimary/Secondary_tags2.json +++ b/source/max-staleness/tests/ReplicaSetWithPrimary/Secondary_tags2.json @@ -13,7 +13,7 @@ "$numberLong": "125002" } }, - "maxWireVersion": 6 + "maxWireVersion": 21 }, { "address": "b:27017", @@ -25,7 +25,7 @@ "$numberLong": "2" } }, - "maxWireVersion": 6, + "maxWireVersion": 21, "tags": { "data_center": "tokyo" } @@ -40,7 +40,7 @@ "$numberLong": "1" } }, - "maxWireVersion": 6, + "maxWireVersion": 21, "tags": { "data_center": "nyc" } @@ -70,7 +70,7 @@ "$numberLong": "2" } }, - "maxWireVersion": 6, + "maxWireVersion": 21, "tags": { "data_center": "tokyo" } @@ -87,7 +87,7 @@ "$numberLong": "2" } }, - "maxWireVersion": 6, + "maxWireVersion": 21, "tags": { "data_center": "tokyo" } diff --git a/source/max-staleness/tests/ReplicaSetWithPrimary/Secondary_tags2.yml b/source/max-staleness/tests/ReplicaSetWithPrimary/Secondary_tags2.yml index b48ae682bd..669ec5bb56 100644 --- a/source/max-staleness/tests/ReplicaSetWithPrimary/Secondary_tags2.yml +++ b/source/max-staleness/tests/ReplicaSetWithPrimary/Secondary_tags2.yml @@ -12,14 +12,14 @@ topology_description: avg_rtt_ms: 5 lastUpdateTime: 0 lastWrite: {lastWriteDate: {$numberLong: "125002"}} - maxWireVersion: 6 + maxWireVersion: 21 - &2 address: b:27017 type: RSSecondary avg_rtt_ms: 5 lastUpdateTime: 0 lastWrite: {lastWriteDate: {$numberLong: "2"}} - maxWireVersion: 6 + maxWireVersion: 21 tags: data_center: tokyo - &3 @@ -28,7 +28,7 @@ topology_description: avg_rtt_ms: 5 lastUpdateTime: 0 lastWrite: {lastWriteDate: {$numberLong: "1"}} # Too stale. - maxWireVersion: 6 + maxWireVersion: 21 tags: data_center: nyc read_preference: diff --git a/source/max-staleness/tests/ReplicaSetWithPrimary/ZeroMaxStaleness.json b/source/max-staleness/tests/ReplicaSetWithPrimary/ZeroMaxStaleness.json index e1e4a7ffb7..fff5609fcc 100644 --- a/source/max-staleness/tests/ReplicaSetWithPrimary/ZeroMaxStaleness.json +++ b/source/max-staleness/tests/ReplicaSetWithPrimary/ZeroMaxStaleness.json @@ -7,7 +7,7 @@ "type": "RSPrimary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "2" @@ -19,7 +19,7 @@ "type": "RSSecondary", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1" diff --git a/source/max-staleness/tests/ReplicaSetWithPrimary/ZeroMaxStaleness.yml b/source/max-staleness/tests/ReplicaSetWithPrimary/ZeroMaxStaleness.yml index 1c2caf8e00..18790394e7 100644 --- a/source/max-staleness/tests/ReplicaSetWithPrimary/ZeroMaxStaleness.yml +++ b/source/max-staleness/tests/ReplicaSetWithPrimary/ZeroMaxStaleness.yml @@ -8,14 +8,14 @@ topology_description: type: RSPrimary avg_rtt_ms: 5 lastUpdateTime: 0 - maxWireVersion: 6 + maxWireVersion: 21 lastWrite: {lastWriteDate: {$numberLong: "2"}} - &2 address: b:27017 type: RSSecondary avg_rtt_ms: 5 lastUpdateTime: 0 - maxWireVersion: 6 + maxWireVersion: 21 lastWrite: {lastWriteDate: {$numberLong: "1"}} read_preference: mode: Nearest diff --git a/source/max-staleness/tests/Sharded/SmallMaxStaleness.json b/source/max-staleness/tests/Sharded/SmallMaxStaleness.json index 91d89720d1..98e05be363 100644 --- a/source/max-staleness/tests/Sharded/SmallMaxStaleness.json +++ b/source/max-staleness/tests/Sharded/SmallMaxStaleness.json @@ -8,7 +8,7 @@ "type": "Mongos", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1" @@ -20,7 +20,7 @@ "type": "Mongos", "avg_rtt_ms": 50, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1" @@ -39,7 +39,7 @@ "type": "Mongos", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1" @@ -51,7 +51,7 @@ "type": "Mongos", "avg_rtt_ms": 50, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1" @@ -65,7 +65,7 @@ "type": "Mongos", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1" diff --git a/source/max-staleness/tests/Sharded/SmallMaxStaleness.yml b/source/max-staleness/tests/Sharded/SmallMaxStaleness.yml index 5ee1e079df..9d5034df1e 100644 --- a/source/max-staleness/tests/Sharded/SmallMaxStaleness.yml +++ b/source/max-staleness/tests/Sharded/SmallMaxStaleness.yml @@ -9,14 +9,14 @@ topology_description: type: Mongos avg_rtt_ms: 5 lastUpdateTime: 0 - maxWireVersion: 6 + maxWireVersion: 21 lastWrite: {lastWriteDate: {$numberLong: "1"}} - &2 address: b:27017 type: Mongos avg_rtt_ms: 50 # Too far. lastUpdateTime: 0 - maxWireVersion: 6 + maxWireVersion: 21 lastWrite: {lastWriteDate: {$numberLong: "1"}} read_preference: mode: Nearest diff --git a/source/max-staleness/tests/Single/SmallMaxStaleness.json b/source/max-staleness/tests/Single/SmallMaxStaleness.json index b8d2db24be..d948739855 100644 --- a/source/max-staleness/tests/Single/SmallMaxStaleness.json +++ b/source/max-staleness/tests/Single/SmallMaxStaleness.json @@ -8,7 +8,7 @@ "type": "Standalone", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1" @@ -27,7 +27,7 @@ "type": "Standalone", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1" @@ -41,7 +41,7 @@ "type": "Standalone", "avg_rtt_ms": 5, "lastUpdateTime": 0, - "maxWireVersion": 6, + "maxWireVersion": 21, "lastWrite": { "lastWriteDate": { "$numberLong": "1" diff --git a/source/max-staleness/tests/Single/SmallMaxStaleness.yml b/source/max-staleness/tests/Single/SmallMaxStaleness.yml index 40f63a82a5..3cba2ae55c 100644 --- a/source/max-staleness/tests/Single/SmallMaxStaleness.yml +++ b/source/max-staleness/tests/Single/SmallMaxStaleness.yml @@ -9,7 +9,7 @@ topology_description: type: Standalone avg_rtt_ms: 5 lastUpdateTime: 0 - maxWireVersion: 6 + maxWireVersion: 21 lastWrite: {lastWriteDate: {$numberLong: "1"}} read_preference: mode: Nearest diff --git a/source/max-staleness/tests/Unknown/SmallMaxStaleness.json b/source/max-staleness/tests/Unknown/SmallMaxStaleness.json index 8d69f46a1e..0e609bcf94 100644 --- a/source/max-staleness/tests/Unknown/SmallMaxStaleness.json +++ b/source/max-staleness/tests/Unknown/SmallMaxStaleness.json @@ -6,7 +6,7 @@ { "address": "a:27017", "type": "Unknown", - "maxWireVersion": 6 + "maxWireVersion": 21 } ] }, diff --git a/source/max-staleness/tests/Unknown/SmallMaxStaleness.yml b/source/max-staleness/tests/Unknown/SmallMaxStaleness.yml index 59e14db362..5d42063765 100644 --- a/source/max-staleness/tests/Unknown/SmallMaxStaleness.yml +++ b/source/max-staleness/tests/Unknown/SmallMaxStaleness.yml @@ -7,7 +7,7 @@ topology_description: - &1 address: a:27017 type: Unknown - maxWireVersion: 6 + maxWireVersion: 21 read_preference: mode: Nearest maxStalenessSeconds: 1 diff --git a/source/server-discovery-and-monitoring/tests/monitoring/discovered_standalone.json b/source/server-discovery-and-monitoring/tests/monitoring/discovered_standalone.json index dd8f7fc51e..097203694e 100644 --- a/source/server-discovery-and-monitoring/tests/monitoring/discovered_standalone.json +++ b/source/server-discovery-and-monitoring/tests/monitoring/discovered_standalone.json @@ -11,7 +11,7 @@ "helloOk": true, "isWritablePrimary": true, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/monitoring/discovered_standalone.yml b/source/server-discovery-and-monitoring/tests/monitoring/discovered_standalone.yml index 5d808f2600..1de96154cc 100644 --- a/source/server-discovery-and-monitoring/tests/monitoring/discovered_standalone.yml +++ b/source/server-discovery-and-monitoring/tests/monitoring/discovered_standalone.yml @@ -5,7 +5,7 @@ phases: responses: - - "a:27017" - - { ok: 1, helloOk: true, isWritablePrimary: true, minWireVersion: 0, maxWireVersion: 6 } + - { ok: 1, helloOk: true, isWritablePrimary: true, minWireVersion: 0, maxWireVersion: 21 } outcome: events: diff --git a/source/server-discovery-and-monitoring/tests/monitoring/replica_set_with_no_primary.json b/source/server-discovery-and-monitoring/tests/monitoring/replica_set_with_no_primary.json index 950e32efe1..41d048729d 100644 --- a/source/server-discovery-and-monitoring/tests/monitoring/replica_set_with_no_primary.json +++ b/source/server-discovery-and-monitoring/tests/monitoring/replica_set_with_no_primary.json @@ -19,7 +19,7 @@ "b:27017" ], "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/monitoring/replica_set_with_no_primary.yml b/source/server-discovery-and-monitoring/tests/monitoring/replica_set_with_no_primary.yml index ce9cdf46e6..e5ca9cd90d 100644 --- a/source/server-discovery-and-monitoring/tests/monitoring/replica_set_with_no_primary.yml +++ b/source/server-discovery-and-monitoring/tests/monitoring/replica_set_with_no_primary.yml @@ -17,7 +17,7 @@ phases: - "a:27017" - "b:27017" minWireVersion: 0 - maxWireVersion: 6 + maxWireVersion: 21 outcome: events: - diff --git a/source/server-discovery-and-monitoring/tests/monitoring/replica_set_with_primary.json b/source/server-discovery-and-monitoring/tests/monitoring/replica_set_with_primary.json index 2ad94d6e6a..3ccc127d1d 100644 --- a/source/server-discovery-and-monitoring/tests/monitoring/replica_set_with_primary.json +++ b/source/server-discovery-and-monitoring/tests/monitoring/replica_set_with_primary.json @@ -18,7 +18,7 @@ "b:27017" ], "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/monitoring/replica_set_with_primary.yml b/source/server-discovery-and-monitoring/tests/monitoring/replica_set_with_primary.yml index 2c78919063..256895bb28 100644 --- a/source/server-discovery-and-monitoring/tests/monitoring/replica_set_with_primary.yml +++ b/source/server-discovery-and-monitoring/tests/monitoring/replica_set_with_primary.yml @@ -16,7 +16,7 @@ phases: - "a:27017" - "b:27017" minWireVersion: 0 - maxWireVersion: 6 + maxWireVersion: 21 outcome: events: - diff --git a/source/server-discovery-and-monitoring/tests/monitoring/replica_set_with_removal.json b/source/server-discovery-and-monitoring/tests/monitoring/replica_set_with_removal.json index ae28faa30c..dc6fbe7e7d 100644 --- a/source/server-discovery-and-monitoring/tests/monitoring/replica_set_with_removal.json +++ b/source/server-discovery-and-monitoring/tests/monitoring/replica_set_with_removal.json @@ -69,7 +69,7 @@ "a:27017" ], "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ], [ diff --git a/source/server-discovery-and-monitoring/tests/monitoring/replica_set_with_removal.yml b/source/server-discovery-and-monitoring/tests/monitoring/replica_set_with_removal.yml index 2471f47680..25c006861a 100644 --- a/source/server-discovery-and-monitoring/tests/monitoring/replica_set_with_removal.yml +++ b/source/server-discovery-and-monitoring/tests/monitoring/replica_set_with_removal.yml @@ -50,7 +50,7 @@ phases: primary: "a:27017", hosts: [ "a:27017" ], minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 } - - "b:27017" diff --git a/source/server-discovery-and-monitoring/tests/monitoring/required_replica_set.json b/source/server-discovery-and-monitoring/tests/monitoring/required_replica_set.json index 401c5d99c5..1f4e5c1d71 100644 --- a/source/server-discovery-and-monitoring/tests/monitoring/required_replica_set.json +++ b/source/server-discovery-and-monitoring/tests/monitoring/required_replica_set.json @@ -18,7 +18,7 @@ "b:27017" ], "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/monitoring/required_replica_set.yml b/source/server-discovery-and-monitoring/tests/monitoring/required_replica_set.yml index 7a060128f3..69d0500de1 100644 --- a/source/server-discovery-and-monitoring/tests/monitoring/required_replica_set.yml +++ b/source/server-discovery-and-monitoring/tests/monitoring/required_replica_set.yml @@ -14,7 +14,7 @@ phases: primary: "a:27017", hosts: [ "a:27017", "b:27017" ], minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 } outcome: events: diff --git a/source/server-discovery-and-monitoring/tests/monitoring/standalone.json b/source/server-discovery-and-monitoring/tests/monitoring/standalone.json index 821a1525d4..f375a383ca 100644 --- a/source/server-discovery-and-monitoring/tests/monitoring/standalone.json +++ b/source/server-discovery-and-monitoring/tests/monitoring/standalone.json @@ -11,7 +11,7 @@ "helloOk": true, "isWritablePrimary": true, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/monitoring/standalone.yml b/source/server-discovery-and-monitoring/tests/monitoring/standalone.yml index d9f6bcfaf3..0c3ed64601 100644 --- a/source/server-discovery-and-monitoring/tests/monitoring/standalone.yml +++ b/source/server-discovery-and-monitoring/tests/monitoring/standalone.yml @@ -5,7 +5,7 @@ phases: responses: - - "a:27017" - - { ok: 1, helloOk: true, isWritablePrimary: true, minWireVersion: 0, maxWireVersion: 6 } + - { ok: 1, helloOk: true, isWritablePrimary: true, minWireVersion: 0, maxWireVersion: 21 } outcome: events: diff --git a/source/server-discovery-and-monitoring/tests/monitoring/standalone_suppress_equal_description_changes.json b/source/server-discovery-and-monitoring/tests/monitoring/standalone_suppress_equal_description_changes.json index 5958e2d26c..4d046ff8ed 100644 --- a/source/server-discovery-and-monitoring/tests/monitoring/standalone_suppress_equal_description_changes.json +++ b/source/server-discovery-and-monitoring/tests/monitoring/standalone_suppress_equal_description_changes.json @@ -11,7 +11,7 @@ "helloOk": true, "isWritablePrimary": true, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ], [ @@ -21,7 +21,7 @@ "helloOk": true, "isWritablePrimary": true, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/monitoring/standalone_suppress_equal_description_changes.yml b/source/server-discovery-and-monitoring/tests/monitoring/standalone_suppress_equal_description_changes.yml index f2f83ffbac..255ec2dd43 100644 --- a/source/server-discovery-and-monitoring/tests/monitoring/standalone_suppress_equal_description_changes.yml +++ b/source/server-discovery-and-monitoring/tests/monitoring/standalone_suppress_equal_description_changes.yml @@ -5,10 +5,10 @@ phases: responses: - - "a:27017" - - { ok: 1, helloOk: true, isWritablePrimary: true, minWireVersion: 0, maxWireVersion: 6 } + - { ok: 1, helloOk: true, isWritablePrimary: true, minWireVersion: 0, maxWireVersion: 21 } - - "a:27017" - - { ok: 1, helloOk: true, isWritablePrimary: true, minWireVersion: 0, maxWireVersion: 6 } + - { ok: 1, helloOk: true, isWritablePrimary: true, minWireVersion: 0, maxWireVersion: 21 } outcome: events: diff --git a/source/server-discovery-and-monitoring/tests/rs/discover_arbiters.json b/source/server-discovery-and-monitoring/tests/rs/discover_arbiters.json index 53709b0cee..803462b156 100644 --- a/source/server-discovery-and-monitoring/tests/rs/discover_arbiters.json +++ b/source/server-discovery-and-monitoring/tests/rs/discover_arbiters.json @@ -18,7 +18,7 @@ ], "setName": "rs", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/discover_arbiters.yml b/source/server-discovery-and-monitoring/tests/rs/discover_arbiters.yml index 67d29eadb5..5334bc8241 100644 --- a/source/server-discovery-and-monitoring/tests/rs/discover_arbiters.yml +++ b/source/server-discovery-and-monitoring/tests/rs/discover_arbiters.yml @@ -16,7 +16,7 @@ phases: [ arbiters: ["b:27017"], setName: "rs", minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/discover_arbiters_replicaset.json b/source/server-discovery-and-monitoring/tests/rs/discover_arbiters_replicaset.json index 64fb49f4fc..e58d7c7fb4 100644 --- a/source/server-discovery-and-monitoring/tests/rs/discover_arbiters_replicaset.json +++ b/source/server-discovery-and-monitoring/tests/rs/discover_arbiters_replicaset.json @@ -18,7 +18,7 @@ ], "setName": "rs", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/discover_arbiters_replicaset.yml b/source/server-discovery-and-monitoring/tests/rs/discover_arbiters_replicaset.yml index c7edb52b01..882dbb0f89 100644 --- a/source/server-discovery-and-monitoring/tests/rs/discover_arbiters_replicaset.yml +++ b/source/server-discovery-and-monitoring/tests/rs/discover_arbiters_replicaset.yml @@ -16,7 +16,7 @@ phases: [ arbiters: ["b:27017"], setName: "rs", minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/discover_ghost.json b/source/server-discovery-and-monitoring/tests/rs/discover_ghost.json index 2e24c83e0b..3b7fc836ec 100644 --- a/source/server-discovery-and-monitoring/tests/rs/discover_ghost.json +++ b/source/server-discovery-and-monitoring/tests/rs/discover_ghost.json @@ -12,7 +12,7 @@ "isWritablePrimary": false, "isreplicaset": true, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/discover_ghost.yml b/source/server-discovery-and-monitoring/tests/rs/discover_ghost.yml index e613f684b4..7a9cbd5559 100644 --- a/source/server-discovery-and-monitoring/tests/rs/discover_ghost.yml +++ b/source/server-discovery-and-monitoring/tests/rs/discover_ghost.yml @@ -14,7 +14,7 @@ phases: [ isWritablePrimary: false, isreplicaset: true, minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/discover_ghost_replicaset.json b/source/server-discovery-and-monitoring/tests/rs/discover_ghost_replicaset.json index cf5fe83a54..1a8457983b 100644 --- a/source/server-discovery-and-monitoring/tests/rs/discover_ghost_replicaset.json +++ b/source/server-discovery-and-monitoring/tests/rs/discover_ghost_replicaset.json @@ -12,7 +12,7 @@ "isWritablePrimary": false, "isreplicaset": true, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/discover_ghost_replicaset.yml b/source/server-discovery-and-monitoring/tests/rs/discover_ghost_replicaset.yml index 75ec3e64a9..61ba1eab56 100644 --- a/source/server-discovery-and-monitoring/tests/rs/discover_ghost_replicaset.yml +++ b/source/server-discovery-and-monitoring/tests/rs/discover_ghost_replicaset.yml @@ -14,7 +14,7 @@ phases: [ isWritablePrimary: false, isreplicaset: true, minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/discover_hidden.json b/source/server-discovery-and-monitoring/tests/rs/discover_hidden.json index e4a90f1f9c..10bd51edeb 100644 --- a/source/server-discovery-and-monitoring/tests/rs/discover_hidden.json +++ b/source/server-discovery-and-monitoring/tests/rs/discover_hidden.json @@ -18,7 +18,7 @@ ], "setName": "rs", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/discover_hidden.yml b/source/server-discovery-and-monitoring/tests/rs/discover_hidden.yml index 64ed1d82b9..f483255802 100644 --- a/source/server-discovery-and-monitoring/tests/rs/discover_hidden.yml +++ b/source/server-discovery-and-monitoring/tests/rs/discover_hidden.yml @@ -17,7 +17,7 @@ phases: [ hosts: ["c:27017", "d:27017"], setName: "rs", minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }], ], diff --git a/source/server-discovery-and-monitoring/tests/rs/discover_hidden_replicaset.json b/source/server-discovery-and-monitoring/tests/rs/discover_hidden_replicaset.json index 04420596f0..63cf558675 100644 --- a/source/server-discovery-and-monitoring/tests/rs/discover_hidden_replicaset.json +++ b/source/server-discovery-and-monitoring/tests/rs/discover_hidden_replicaset.json @@ -18,7 +18,7 @@ ], "setName": "rs", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/discover_hidden_replicaset.yml b/source/server-discovery-and-monitoring/tests/rs/discover_hidden_replicaset.yml index 614a39d482..8d496544d2 100644 --- a/source/server-discovery-and-monitoring/tests/rs/discover_hidden_replicaset.yml +++ b/source/server-discovery-and-monitoring/tests/rs/discover_hidden_replicaset.yml @@ -17,7 +17,7 @@ phases: [ hosts: ["c:27017", "d:27017"], setName: "rs", minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }], ], diff --git a/source/server-discovery-and-monitoring/tests/rs/discover_passives.json b/source/server-discovery-and-monitoring/tests/rs/discover_passives.json index 30258409f6..0a292c675c 100644 --- a/source/server-discovery-and-monitoring/tests/rs/discover_passives.json +++ b/source/server-discovery-and-monitoring/tests/rs/discover_passives.json @@ -18,7 +18,7 @@ ], "setName": "rs", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], @@ -56,7 +56,7 @@ ], "setName": "rs", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/discover_passives.yml b/source/server-discovery-and-monitoring/tests/rs/discover_passives.yml index 637d86d7f1..25419733cf 100644 --- a/source/server-discovery-and-monitoring/tests/rs/discover_passives.yml +++ b/source/server-discovery-and-monitoring/tests/rs/discover_passives.yml @@ -16,7 +16,7 @@ phases: [ passives: ["b:27017"], setName: "rs", minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], @@ -55,7 +55,7 @@ phases: [ passives: ["b:27017"], setName: "rs", minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/discover_passives_replicaset.json b/source/server-discovery-and-monitoring/tests/rs/discover_passives_replicaset.json index 266eaa5234..c48fd47625 100644 --- a/source/server-discovery-and-monitoring/tests/rs/discover_passives_replicaset.json +++ b/source/server-discovery-and-monitoring/tests/rs/discover_passives_replicaset.json @@ -18,7 +18,7 @@ ], "setName": "rs", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], @@ -56,7 +56,7 @@ ], "setName": "rs", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/discover_passives_replicaset.yml b/source/server-discovery-and-monitoring/tests/rs/discover_passives_replicaset.yml index a5ced995d3..d981280a2f 100644 --- a/source/server-discovery-and-monitoring/tests/rs/discover_passives_replicaset.yml +++ b/source/server-discovery-and-monitoring/tests/rs/discover_passives_replicaset.yml @@ -16,7 +16,7 @@ phases: [ passives: ["b:27017"], setName: "rs", minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], @@ -55,7 +55,7 @@ phases: [ passives: ["b:27017"], setName: "rs", minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/discover_primary.json b/source/server-discovery-and-monitoring/tests/rs/discover_primary.json index 2d1292bbd4..04e7a4984c 100644 --- a/source/server-discovery-and-monitoring/tests/rs/discover_primary.json +++ b/source/server-discovery-and-monitoring/tests/rs/discover_primary.json @@ -16,7 +16,7 @@ "b:27017" ], "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/discover_primary.yml b/source/server-discovery-and-monitoring/tests/rs/discover_primary.yml index eaedf130ba..3c11e3e4f2 100644 --- a/source/server-discovery-and-monitoring/tests/rs/discover_primary.yml +++ b/source/server-discovery-and-monitoring/tests/rs/discover_primary.yml @@ -15,7 +15,7 @@ phases: [ setName: "rs", hosts: ["a:27017", "b:27017"], minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/discover_primary_replicaset.json b/source/server-discovery-and-monitoring/tests/rs/discover_primary_replicaset.json index 54dfefba5f..3cdcfdcee2 100644 --- a/source/server-discovery-and-monitoring/tests/rs/discover_primary_replicaset.json +++ b/source/server-discovery-and-monitoring/tests/rs/discover_primary_replicaset.json @@ -16,7 +16,7 @@ "b:27017" ], "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/discover_primary_replicaset.yml b/source/server-discovery-and-monitoring/tests/rs/discover_primary_replicaset.yml index 7879701bb2..47831fa60a 100644 --- a/source/server-discovery-and-monitoring/tests/rs/discover_primary_replicaset.yml +++ b/source/server-discovery-and-monitoring/tests/rs/discover_primary_replicaset.yml @@ -15,7 +15,7 @@ phases: [ setName: "rs", hosts: ["a:27017", "b:27017"], minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/discover_rsother.json b/source/server-discovery-and-monitoring/tests/rs/discover_rsother.json index 4ab25667f0..9c3b8d8b7d 100644 --- a/source/server-discovery-and-monitoring/tests/rs/discover_rsother.json +++ b/source/server-discovery-and-monitoring/tests/rs/discover_rsother.json @@ -17,7 +17,7 @@ ], "setName": "rs", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/discover_rsother.yml b/source/server-discovery-and-monitoring/tests/rs/discover_rsother.yml index d78e70c5d7..11c65863f4 100644 --- a/source/server-discovery-and-monitoring/tests/rs/discover_rsother.yml +++ b/source/server-discovery-and-monitoring/tests/rs/discover_rsother.yml @@ -16,7 +16,7 @@ phases: [ hosts: ["c:27017", "d:27017"], setName: "rs", minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/discover_rsother_replicaset.json b/source/server-discovery-and-monitoring/tests/rs/discover_rsother_replicaset.json index e3958d70ad..3da9efb066 100644 --- a/source/server-discovery-and-monitoring/tests/rs/discover_rsother_replicaset.json +++ b/source/server-discovery-and-monitoring/tests/rs/discover_rsother_replicaset.json @@ -18,7 +18,7 @@ ], "setName": "rs", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ], [ @@ -34,7 +34,7 @@ ], "setName": "rs", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/discover_rsother_replicaset.yml b/source/server-discovery-and-monitoring/tests/rs/discover_rsother_replicaset.yml index 19159d1efe..c25d33ab2b 100644 --- a/source/server-discovery-and-monitoring/tests/rs/discover_rsother_replicaset.yml +++ b/source/server-discovery-and-monitoring/tests/rs/discover_rsother_replicaset.yml @@ -17,7 +17,7 @@ phases: [ hosts: ["c:27017", "d:27017"], setName: "rs", minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }], ["b:27017", { @@ -28,7 +28,7 @@ phases: [ hosts: ["c:27017", "d:27017"], setName: "rs", minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/discover_secondary.json b/source/server-discovery-and-monitoring/tests/rs/discover_secondary.json index 22325d4e03..64a1ce31e3 100644 --- a/source/server-discovery-and-monitoring/tests/rs/discover_secondary.json +++ b/source/server-discovery-and-monitoring/tests/rs/discover_secondary.json @@ -17,7 +17,7 @@ "b:27017" ], "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/discover_secondary.yml b/source/server-discovery-and-monitoring/tests/rs/discover_secondary.yml index 184849d3ff..83af822eda 100644 --- a/source/server-discovery-and-monitoring/tests/rs/discover_secondary.yml +++ b/source/server-discovery-and-monitoring/tests/rs/discover_secondary.yml @@ -16,7 +16,7 @@ phases: [ setName: "rs", hosts: ["a:27017", "b:27017"], minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/discover_secondary_replicaset.json b/source/server-discovery-and-monitoring/tests/rs/discover_secondary_replicaset.json index d903b6444d..d230f976a2 100644 --- a/source/server-discovery-and-monitoring/tests/rs/discover_secondary_replicaset.json +++ b/source/server-discovery-and-monitoring/tests/rs/discover_secondary_replicaset.json @@ -17,7 +17,7 @@ "b:27017" ], "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/discover_secondary_replicaset.yml b/source/server-discovery-and-monitoring/tests/rs/discover_secondary_replicaset.yml index c73a535f69..71229387cc 100644 --- a/source/server-discovery-and-monitoring/tests/rs/discover_secondary_replicaset.yml +++ b/source/server-discovery-and-monitoring/tests/rs/discover_secondary_replicaset.yml @@ -16,7 +16,7 @@ phases: [ setName: "rs", hosts: ["a:27017", "b:27017"], minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/discovery.json b/source/server-discovery-and-monitoring/tests/rs/discovery.json index 50e1269223..e9deaa7587 100644 --- a/source/server-discovery-and-monitoring/tests/rs/discovery.json +++ b/source/server-discovery-and-monitoring/tests/rs/discovery.json @@ -18,7 +18,7 @@ "c:27017" ], "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], @@ -59,7 +59,7 @@ "d:27017" ], "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], @@ -103,7 +103,7 @@ "e:27017" ], "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], @@ -147,7 +147,7 @@ "c:27017" ], "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/discovery.yml b/source/server-discovery-and-monitoring/tests/rs/discovery.yml index 30c82e0cef..19be04897b 100644 --- a/source/server-discovery-and-monitoring/tests/rs/discovery.yml +++ b/source/server-discovery-and-monitoring/tests/rs/discovery.yml @@ -17,7 +17,7 @@ phases: [ setName: "rs", hosts: ["a:27017", "b:27017", "c:27017"], minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], @@ -63,7 +63,7 @@ phases: [ primary: "d:27017", hosts: ["b:27017", "c:27017", "d:27017"], minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], @@ -113,7 +113,7 @@ phases: [ setName: "rs", hosts: ["b:27017", "c:27017", "d:27017", "e:27017"], minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], @@ -165,7 +165,7 @@ phases: [ setName: "rs", hosts: ["a:27017", "b:27017", "c:27017"], minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/equal_electionids.json b/source/server-discovery-and-monitoring/tests/rs/equal_electionids.json index 17df3207fa..f1deedf9f4 100644 --- a/source/server-discovery-and-monitoring/tests/rs/equal_electionids.json +++ b/source/server-discovery-and-monitoring/tests/rs/equal_electionids.json @@ -20,7 +20,7 @@ "$oid": "000000000000000000000001" }, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ], [ @@ -39,7 +39,7 @@ "$oid": "000000000000000000000001" }, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/equal_electionids.yml b/source/server-discovery-and-monitoring/tests/rs/equal_electionids.yml index 48bb683d64..17e8aa2c11 100644 --- a/source/server-discovery-and-monitoring/tests/rs/equal_electionids.yml +++ b/source/server-discovery-and-monitoring/tests/rs/equal_electionids.yml @@ -16,7 +16,7 @@ phases: [ setVersion: 1, electionId: {"$oid": "000000000000000000000001"}, minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }], ["b:27017", { ok: 1, @@ -27,7 +27,7 @@ phases: [ setVersion: 1, electionId: {"$oid": "000000000000000000000001"}, minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/hosts_differ_from_seeds.json b/source/server-discovery-and-monitoring/tests/rs/hosts_differ_from_seeds.json index 4e02304c61..085e81e266 100644 --- a/source/server-discovery-and-monitoring/tests/rs/hosts_differ_from_seeds.json +++ b/source/server-discovery-and-monitoring/tests/rs/hosts_differ_from_seeds.json @@ -15,7 +15,7 @@ "b:27017" ], "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/hosts_differ_from_seeds.yml b/source/server-discovery-and-monitoring/tests/rs/hosts_differ_from_seeds.yml index e97fbca05b..2ecd27ec7c 100644 --- a/source/server-discovery-and-monitoring/tests/rs/hosts_differ_from_seeds.yml +++ b/source/server-discovery-and-monitoring/tests/rs/hosts_differ_from_seeds.yml @@ -15,7 +15,7 @@ phases: [ setName: "rs", hosts: ["b:27017"], minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/incompatible_arbiter.json b/source/server-discovery-and-monitoring/tests/rs/incompatible_arbiter.json index f0539cb337..bda18d9f6f 100644 --- a/source/server-discovery-and-monitoring/tests/rs/incompatible_arbiter.json +++ b/source/server-discovery-and-monitoring/tests/rs/incompatible_arbiter.json @@ -16,7 +16,7 @@ "b:27017" ], "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ], [ diff --git a/source/server-discovery-and-monitoring/tests/rs/incompatible_arbiter.yml b/source/server-discovery-and-monitoring/tests/rs/incompatible_arbiter.yml index e4928f191d..2e46ff2951 100644 --- a/source/server-discovery-and-monitoring/tests/rs/incompatible_arbiter.yml +++ b/source/server-discovery-and-monitoring/tests/rs/incompatible_arbiter.yml @@ -12,7 +12,7 @@ phases: setName: "rs" hosts: ["a:27017", "b:27017"] minWireVersion: 0 - maxWireVersion: 6 + maxWireVersion: 21 - - "b:27017" - ok: 1 diff --git a/source/server-discovery-and-monitoring/tests/rs/incompatible_ghost.json b/source/server-discovery-and-monitoring/tests/rs/incompatible_ghost.json index 824e953f90..9d82e31682 100644 --- a/source/server-discovery-and-monitoring/tests/rs/incompatible_ghost.json +++ b/source/server-discovery-and-monitoring/tests/rs/incompatible_ghost.json @@ -16,7 +16,7 @@ "b:27017" ], "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ], [ diff --git a/source/server-discovery-and-monitoring/tests/rs/incompatible_ghost.yml b/source/server-discovery-and-monitoring/tests/rs/incompatible_ghost.yml index da1db790fe..c99badf4a3 100644 --- a/source/server-discovery-and-monitoring/tests/rs/incompatible_ghost.yml +++ b/source/server-discovery-and-monitoring/tests/rs/incompatible_ghost.yml @@ -12,7 +12,7 @@ phases: setName: "rs" hosts: ["a:27017", "b:27017"] minWireVersion: 0 - maxWireVersion: 6 + maxWireVersion: 21 - - "b:27017" - ok: 1 diff --git a/source/server-discovery-and-monitoring/tests/rs/incompatible_other.json b/source/server-discovery-and-monitoring/tests/rs/incompatible_other.json index 6f301ef5de..149ba01142 100644 --- a/source/server-discovery-and-monitoring/tests/rs/incompatible_other.json +++ b/source/server-discovery-and-monitoring/tests/rs/incompatible_other.json @@ -16,7 +16,7 @@ "b:27017" ], "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ], [ diff --git a/source/server-discovery-and-monitoring/tests/rs/incompatible_other.yml b/source/server-discovery-and-monitoring/tests/rs/incompatible_other.yml index 98061c0a1f..16452e7b02 100644 --- a/source/server-discovery-and-monitoring/tests/rs/incompatible_other.yml +++ b/source/server-discovery-and-monitoring/tests/rs/incompatible_other.yml @@ -12,7 +12,7 @@ phases: setName: "rs" hosts: ["a:27017", "b:27017"] minWireVersion: 0 - maxWireVersion: 6 + maxWireVersion: 21 - - "b:27017" - ok: 1 diff --git a/source/server-discovery-and-monitoring/tests/rs/ls_timeout.json b/source/server-discovery-and-monitoring/tests/rs/ls_timeout.json index 96389d3b76..c68790ddfd 100644 --- a/source/server-discovery-and-monitoring/tests/rs/ls_timeout.json +++ b/source/server-discovery-and-monitoring/tests/rs/ls_timeout.json @@ -20,7 +20,7 @@ "setName": "rs", "logicalSessionTimeoutMinutes": 3, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], @@ -58,7 +58,7 @@ "isWritablePrimary": false, "isreplicaset": true, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], @@ -104,7 +104,7 @@ "setName": "rs", "arbiterOnly": true, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], @@ -152,7 +152,7 @@ "setName": "rs", "logicalSessionTimeoutMinutes": 2, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], @@ -194,7 +194,7 @@ "hidden": true, "logicalSessionTimeoutMinutes": 1, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], @@ -244,7 +244,7 @@ "setName": "rs", "logicalSessionTimeoutMinutes": null, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/ls_timeout.yml b/source/server-discovery-and-monitoring/tests/rs/ls_timeout.yml index 26679f339e..2cea00e99e 100644 --- a/source/server-discovery-and-monitoring/tests/rs/ls_timeout.yml +++ b/source/server-discovery-and-monitoring/tests/rs/ls_timeout.yml @@ -14,7 +14,7 @@ phases: [ setName: "rs", logicalSessionTimeoutMinutes: 3, minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }], ], outcome: { @@ -51,7 +51,7 @@ phases: [ isWritablePrimary: false, isreplicaset: true, minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }], ], outcome: { @@ -90,7 +90,7 @@ phases: [ setName: "rs", arbiterOnly: true, minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], outcome: { @@ -131,7 +131,7 @@ phases: [ setName: "rs", logicalSessionTimeoutMinutes: 2, minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }], ], outcome: { @@ -172,7 +172,7 @@ phases: [ hidden: true, logicalSessionTimeoutMinutes: 1, minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }], ], outcome: { @@ -214,7 +214,7 @@ phases: [ setName: "rs", logicalSessionTimeoutMinutes: null, minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/member_reconfig.json b/source/server-discovery-and-monitoring/tests/rs/member_reconfig.json index 0e2c2c462e..a05fed0efb 100644 --- a/source/server-discovery-and-monitoring/tests/rs/member_reconfig.json +++ b/source/server-discovery-and-monitoring/tests/rs/member_reconfig.json @@ -16,7 +16,7 @@ "b:27017" ], "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], @@ -49,7 +49,7 @@ "a:27017" ], "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/member_reconfig.yml b/source/server-discovery-and-monitoring/tests/rs/member_reconfig.yml index 37e63bc059..a43a88d53f 100644 --- a/source/server-discovery-and-monitoring/tests/rs/member_reconfig.yml +++ b/source/server-discovery-and-monitoring/tests/rs/member_reconfig.yml @@ -15,7 +15,7 @@ phases: [ setName: "rs", hosts: ["a:27017", "b:27017"], minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], @@ -52,7 +52,7 @@ phases: [ setName: "rs", hosts: ["a:27017"], minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/member_standalone.json b/source/server-discovery-and-monitoring/tests/rs/member_standalone.json index 0756003a89..db100db9f3 100644 --- a/source/server-discovery-and-monitoring/tests/rs/member_standalone.json +++ b/source/server-discovery-and-monitoring/tests/rs/member_standalone.json @@ -11,7 +11,7 @@ "helloOk": true, "isWritablePrimary": true, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], @@ -40,7 +40,7 @@ "a:27017" ], "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/member_standalone.yml b/source/server-discovery-and-monitoring/tests/rs/member_standalone.yml index 50c0056650..1be000ea4e 100644 --- a/source/server-discovery-and-monitoring/tests/rs/member_standalone.yml +++ b/source/server-discovery-and-monitoring/tests/rs/member_standalone.yml @@ -13,7 +13,7 @@ phases: [ helloOk: true, isWritablePrimary: true, minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], @@ -44,7 +44,7 @@ phases: [ setName: "rs", hosts: ["a:27017"], minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/new_primary.json b/source/server-discovery-and-monitoring/tests/rs/new_primary.json index ed1a6245f9..1a84c69c91 100644 --- a/source/server-discovery-and-monitoring/tests/rs/new_primary.json +++ b/source/server-discovery-and-monitoring/tests/rs/new_primary.json @@ -16,7 +16,7 @@ "b:27017" ], "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], @@ -50,7 +50,7 @@ "b:27017" ], "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/new_primary.yml b/source/server-discovery-and-monitoring/tests/rs/new_primary.yml index 736dd06c5f..f2485a1863 100644 --- a/source/server-discovery-and-monitoring/tests/rs/new_primary.yml +++ b/source/server-discovery-and-monitoring/tests/rs/new_primary.yml @@ -15,7 +15,7 @@ phases: [ setName: "rs", hosts: ["a:27017", "b:27017"], minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], @@ -52,7 +52,7 @@ phases: [ setName: "rs", hosts: ["a:27017", "b:27017"], minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/new_primary_new_electionid.json b/source/server-discovery-and-monitoring/tests/rs/new_primary_new_electionid.json index ccb3a41f75..509720d445 100644 --- a/source/server-discovery-and-monitoring/tests/rs/new_primary_new_electionid.json +++ b/source/server-discovery-and-monitoring/tests/rs/new_primary_new_electionid.json @@ -20,7 +20,7 @@ "$oid": "000000000000000000000001" }, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], @@ -67,7 +67,7 @@ "$oid": "000000000000000000000002" }, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], @@ -114,7 +114,7 @@ "$oid": "000000000000000000000001" }, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/new_primary_new_electionid.yml b/source/server-discovery-and-monitoring/tests/rs/new_primary_new_electionid.yml index dfebbd8561..5641cfda95 100644 --- a/source/server-discovery-and-monitoring/tests/rs/new_primary_new_electionid.yml +++ b/source/server-discovery-and-monitoring/tests/rs/new_primary_new_electionid.yml @@ -16,7 +16,7 @@ phases: [ setVersion: 1, electionId: {"$oid": "000000000000000000000001"}, minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], @@ -54,7 +54,7 @@ phases: [ setVersion: 1, electionId: {"$oid": "000000000000000000000002"}, minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], @@ -92,7 +92,7 @@ phases: [ setVersion: 1, electionId: {"$oid": "000000000000000000000001"}, minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], outcome: { diff --git a/source/server-discovery-and-monitoring/tests/rs/new_primary_new_setversion.json b/source/server-discovery-and-monitoring/tests/rs/new_primary_new_setversion.json index 415a0f66aa..96533c61ee 100644 --- a/source/server-discovery-and-monitoring/tests/rs/new_primary_new_setversion.json +++ b/source/server-discovery-and-monitoring/tests/rs/new_primary_new_setversion.json @@ -20,7 +20,7 @@ "$oid": "000000000000000000000001" }, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], @@ -67,7 +67,7 @@ "$oid": "000000000000000000000001" }, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], @@ -114,7 +114,7 @@ "$oid": "000000000000000000000001" }, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/new_primary_new_setversion.yml b/source/server-discovery-and-monitoring/tests/rs/new_primary_new_setversion.yml index 3ebc798b61..f269797112 100644 --- a/source/server-discovery-and-monitoring/tests/rs/new_primary_new_setversion.yml +++ b/source/server-discovery-and-monitoring/tests/rs/new_primary_new_setversion.yml @@ -16,7 +16,7 @@ phases: [ setVersion: 1, electionId: {"$oid": "000000000000000000000001"}, minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], @@ -54,7 +54,7 @@ phases: [ setVersion: 2, electionId: {"$oid": "000000000000000000000001"}, minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], @@ -92,7 +92,7 @@ phases: [ setVersion: 1, electionId: {"$oid": "000000000000000000000001"}, minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], outcome: { diff --git a/source/server-discovery-and-monitoring/tests/rs/new_primary_wrong_set_name.json b/source/server-discovery-and-monitoring/tests/rs/new_primary_wrong_set_name.json index d7b19cfe8f..774b3a5736 100644 --- a/source/server-discovery-and-monitoring/tests/rs/new_primary_wrong_set_name.json +++ b/source/server-discovery-and-monitoring/tests/rs/new_primary_wrong_set_name.json @@ -16,7 +16,7 @@ ], "setName": "rs", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], @@ -49,7 +49,7 @@ ], "setName": "wrong", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/new_primary_wrong_set_name.yml b/source/server-discovery-and-monitoring/tests/rs/new_primary_wrong_set_name.yml index ca6303cda9..dc6df9cd8b 100644 --- a/source/server-discovery-and-monitoring/tests/rs/new_primary_wrong_set_name.yml +++ b/source/server-discovery-and-monitoring/tests/rs/new_primary_wrong_set_name.yml @@ -16,7 +16,7 @@ phases: [ hosts: ["a:27017", "b:27017"], setName: "rs", minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], @@ -55,7 +55,7 @@ phases: [ hosts: ["a:27017"], setName: "wrong", minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/non_rs_member.json b/source/server-discovery-and-monitoring/tests/rs/non_rs_member.json index 538077ef09..6bf10bd628 100644 --- a/source/server-discovery-and-monitoring/tests/rs/non_rs_member.json +++ b/source/server-discovery-and-monitoring/tests/rs/non_rs_member.json @@ -10,7 +10,7 @@ "ok": 1, "helloOk": true, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/non_rs_member.yml b/source/server-discovery-and-monitoring/tests/rs/non_rs_member.yml index c18b27ee3f..4e2f0b1be2 100644 --- a/source/server-discovery-and-monitoring/tests/rs/non_rs_member.yml +++ b/source/server-discovery-and-monitoring/tests/rs/non_rs_member.yml @@ -11,7 +11,7 @@ phases: [ ok: 1, helloOk: true, minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/normalize_case.json b/source/server-discovery-and-monitoring/tests/rs/normalize_case.json index 96a944f0c3..62915495e0 100644 --- a/source/server-discovery-and-monitoring/tests/rs/normalize_case.json +++ b/source/server-discovery-and-monitoring/tests/rs/normalize_case.json @@ -21,7 +21,7 @@ "C:27017" ], "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/normalize_case.yml b/source/server-discovery-and-monitoring/tests/rs/normalize_case.yml index d8003ee375..a543ab72af 100644 --- a/source/server-discovery-and-monitoring/tests/rs/normalize_case.yml +++ b/source/server-discovery-and-monitoring/tests/rs/normalize_case.yml @@ -17,7 +17,7 @@ phases: [ passives: ["B:27017"], arbiters: ["C:27017"], minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/normalize_case_me.json b/source/server-discovery-and-monitoring/tests/rs/normalize_case_me.json index ab1720cefc..0d9ba6213e 100644 --- a/source/server-discovery-and-monitoring/tests/rs/normalize_case_me.json +++ b/source/server-discovery-and-monitoring/tests/rs/normalize_case_me.json @@ -22,7 +22,7 @@ "C:27017" ], "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], @@ -67,7 +67,7 @@ "C:27017" ], "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/normalize_case_me.yml b/source/server-discovery-and-monitoring/tests/rs/normalize_case_me.yml index a0df3351a5..03ac43f314 100644 --- a/source/server-discovery-and-monitoring/tests/rs/normalize_case_me.yml +++ b/source/server-discovery-and-monitoring/tests/rs/normalize_case_me.yml @@ -18,7 +18,7 @@ phases: [ passives: ["B:27017"], arbiters: ["C:27017"], minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], @@ -66,7 +66,7 @@ phases: [ passives: ["B:27017"], arbiters: ["C:27017"], minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/null_election_id-pre-6.0.json b/source/server-discovery-and-monitoring/tests/rs/null_election_id-pre-6.0.json index f1fa2e252e..9e7ccc6e7f 100644 --- a/source/server-discovery-and-monitoring/tests/rs/null_election_id-pre-6.0.json +++ b/source/server-discovery-and-monitoring/tests/rs/null_election_id-pre-6.0.json @@ -18,7 +18,7 @@ "setVersion": 1, "setName": "rs", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 7 } ] ], @@ -66,7 +66,7 @@ "$oid": "000000000000000000000002" }, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], @@ -116,7 +116,7 @@ "setVersion": 1, "setName": "rs", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 7 } ] ], @@ -167,7 +167,7 @@ "$oid": "000000000000000000000001" }, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 7 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/null_election_id-pre-6.0.yml b/source/server-discovery-and-monitoring/tests/rs/null_election_id-pre-6.0.yml index 7e9bd55021..63f9699f22 100644 --- a/source/server-discovery-and-monitoring/tests/rs/null_election_id-pre-6.0.yml +++ b/source/server-discovery-and-monitoring/tests/rs/null_election_id-pre-6.0.yml @@ -15,7 +15,7 @@ phases: [ setVersion: 1, setName: "rs", minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 7 }] ], @@ -57,7 +57,7 @@ phases: [ setVersion: 1, electionId: {"$oid": "000000000000000000000002"}, minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 7 }] ], @@ -99,7 +99,7 @@ phases: [ setVersion: 1, setName: "rs", minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 7 }] ], outcome: { @@ -142,7 +142,7 @@ phases: [ setVersion: 1, electionId: {"$oid": "000000000000000000000001"}, minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 7 }] ], outcome: { diff --git a/source/server-discovery-and-monitoring/tests/rs/primary_becomes_ghost.json b/source/server-discovery-and-monitoring/tests/rs/primary_becomes_ghost.json index 9c54b39856..e34280e88c 100644 --- a/source/server-discovery-and-monitoring/tests/rs/primary_becomes_ghost.json +++ b/source/server-discovery-and-monitoring/tests/rs/primary_becomes_ghost.json @@ -15,7 +15,7 @@ ], "setName": "rs", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], @@ -41,7 +41,7 @@ "isWritablePrimary": false, "isreplicaset": true, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/primary_becomes_ghost.yml b/source/server-discovery-and-monitoring/tests/rs/primary_becomes_ghost.yml index dbf5b9289d..ee0158db0d 100644 --- a/source/server-discovery-and-monitoring/tests/rs/primary_becomes_ghost.yml +++ b/source/server-discovery-and-monitoring/tests/rs/primary_becomes_ghost.yml @@ -15,7 +15,7 @@ phases: [ hosts: ["a:27017"], setName: "rs", minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], @@ -43,7 +43,7 @@ phases: [ isWritablePrimary: false, isreplicaset: true, minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/primary_becomes_mongos.json b/source/server-discovery-and-monitoring/tests/rs/primary_becomes_mongos.json index ac416e57d5..79510d9399 100644 --- a/source/server-discovery-and-monitoring/tests/rs/primary_becomes_mongos.json +++ b/source/server-discovery-and-monitoring/tests/rs/primary_becomes_mongos.json @@ -15,7 +15,7 @@ ], "setName": "rs", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], @@ -41,7 +41,7 @@ "isWritablePrimary": true, "msg": "isdbgrid", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/primary_becomes_mongos.yml b/source/server-discovery-and-monitoring/tests/rs/primary_becomes_mongos.yml index 6cdb077106..251f155277 100644 --- a/source/server-discovery-and-monitoring/tests/rs/primary_becomes_mongos.yml +++ b/source/server-discovery-and-monitoring/tests/rs/primary_becomes_mongos.yml @@ -15,7 +15,7 @@ phases: [ hosts: ["a:27017"], setName: "rs", minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], @@ -43,7 +43,7 @@ phases: [ isWritablePrimary: true, msg: "isdbgrid", minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/primary_becomes_standalone.json b/source/server-discovery-and-monitoring/tests/rs/primary_becomes_standalone.json index a64524d0ca..abcc1e2d01 100644 --- a/source/server-discovery-and-monitoring/tests/rs/primary_becomes_standalone.json +++ b/source/server-discovery-and-monitoring/tests/rs/primary_becomes_standalone.json @@ -15,7 +15,7 @@ ], "setName": "rs", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], @@ -38,7 +38,7 @@ { "ok": 1, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/primary_becomes_standalone.yml b/source/server-discovery-and-monitoring/tests/rs/primary_becomes_standalone.yml index abcc7fcfe3..9f6a0817bf 100644 --- a/source/server-discovery-and-monitoring/tests/rs/primary_becomes_standalone.yml +++ b/source/server-discovery-and-monitoring/tests/rs/primary_becomes_standalone.yml @@ -15,7 +15,7 @@ phases: [ hosts: ["a:27017"], setName: "rs", minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], @@ -40,7 +40,7 @@ phases: [ ["a:27017", { ok: 1, minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/primary_changes_set_name.json b/source/server-discovery-and-monitoring/tests/rs/primary_changes_set_name.json index bf70ca3014..3b564d2c93 100644 --- a/source/server-discovery-and-monitoring/tests/rs/primary_changes_set_name.json +++ b/source/server-discovery-and-monitoring/tests/rs/primary_changes_set_name.json @@ -15,7 +15,7 @@ ], "setName": "rs", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], @@ -44,7 +44,7 @@ ], "setName": "wrong", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/primary_changes_set_name.yml b/source/server-discovery-and-monitoring/tests/rs/primary_changes_set_name.yml index 00ed1c0a13..e49aa24911 100644 --- a/source/server-discovery-and-monitoring/tests/rs/primary_changes_set_name.yml +++ b/source/server-discovery-and-monitoring/tests/rs/primary_changes_set_name.yml @@ -16,7 +16,7 @@ phases: [ hosts: ["a:27017"], setName: "rs", minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], @@ -48,7 +48,7 @@ phases: [ hosts: ["a:27017"], setName: "wrong", minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/primary_disconnect.json b/source/server-discovery-and-monitoring/tests/rs/primary_disconnect.json index 3db854f085..73a01a82a9 100644 --- a/source/server-discovery-and-monitoring/tests/rs/primary_disconnect.json +++ b/source/server-discovery-and-monitoring/tests/rs/primary_disconnect.json @@ -15,7 +15,7 @@ ], "setName": "rs", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/primary_disconnect.yml b/source/server-discovery-and-monitoring/tests/rs/primary_disconnect.yml index 9a49656549..84c88daa67 100644 --- a/source/server-discovery-and-monitoring/tests/rs/primary_disconnect.yml +++ b/source/server-discovery-and-monitoring/tests/rs/primary_disconnect.yml @@ -15,7 +15,7 @@ phases: [ hosts: ["a:27017"], setName: "rs", minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/primary_disconnect_electionid.json b/source/server-discovery-and-monitoring/tests/rs/primary_disconnect_electionid.json index 3a80b150fe..5a91188ea8 100644 --- a/source/server-discovery-and-monitoring/tests/rs/primary_disconnect_electionid.json +++ b/source/server-discovery-and-monitoring/tests/rs/primary_disconnect_electionid.json @@ -20,7 +20,7 @@ "$oid": "000000000000000000000001" }, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ], [ @@ -39,7 +39,7 @@ "$oid": "000000000000000000000002" }, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], @@ -115,7 +115,7 @@ "$oid": "000000000000000000000001" }, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], @@ -159,7 +159,7 @@ "$oid": "000000000000000000000003" }, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], @@ -203,7 +203,7 @@ ], "setName": "rs", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/primary_disconnect_electionid.yml b/source/server-discovery-and-monitoring/tests/rs/primary_disconnect_electionid.yml index 0d7d294f97..391ec31213 100644 --- a/source/server-discovery-and-monitoring/tests/rs/primary_disconnect_electionid.yml +++ b/source/server-discovery-and-monitoring/tests/rs/primary_disconnect_electionid.yml @@ -16,7 +16,7 @@ phases: [ setVersion: 1, electionId: {"$oid": "000000000000000000000001"}, minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }], ["b:27017", { ok: 1, @@ -27,7 +27,7 @@ phases: [ setVersion: 1, electionId: {"$oid": "000000000000000000000002"}, minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], @@ -91,7 +91,7 @@ phases: [ setVersion: 1, electionId: {"$oid": "000000000000000000000001"}, minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], outcome: { @@ -127,7 +127,7 @@ phases: [ setVersion: 1, electionId: {"$oid": "000000000000000000000003"}, minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], outcome: { @@ -163,7 +163,7 @@ phases: [ hosts: ["a:27017", "b:27017"], setName: "rs", minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], outcome: { diff --git a/source/server-discovery-and-monitoring/tests/rs/primary_disconnect_setversion.json b/source/server-discovery-and-monitoring/tests/rs/primary_disconnect_setversion.json index 32e03fb7d4..f7417ad77b 100644 --- a/source/server-discovery-and-monitoring/tests/rs/primary_disconnect_setversion.json +++ b/source/server-discovery-and-monitoring/tests/rs/primary_disconnect_setversion.json @@ -20,7 +20,7 @@ "$oid": "000000000000000000000001" }, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ], [ @@ -39,7 +39,7 @@ "$oid": "000000000000000000000001" }, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], @@ -115,7 +115,7 @@ "$oid": "000000000000000000000001" }, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], @@ -159,7 +159,7 @@ "$oid": "000000000000000000000002" }, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], @@ -203,7 +203,7 @@ ], "setName": "rs", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/primary_disconnect_setversion.yml b/source/server-discovery-and-monitoring/tests/rs/primary_disconnect_setversion.yml index 41f2f8d7b7..57eeb573e4 100644 --- a/source/server-discovery-and-monitoring/tests/rs/primary_disconnect_setversion.yml +++ b/source/server-discovery-and-monitoring/tests/rs/primary_disconnect_setversion.yml @@ -16,7 +16,7 @@ phases: [ setVersion: 1, electionId: {"$oid": "000000000000000000000001"}, minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }], ["b:27017", { ok: 1, @@ -27,7 +27,7 @@ phases: [ setVersion: 2, electionId: {"$oid": "000000000000000000000001"}, minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], @@ -91,7 +91,7 @@ phases: [ setVersion: 1, electionId: {"$oid": "000000000000000000000001"}, minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], outcome: { @@ -127,7 +127,7 @@ phases: [ setVersion: 2, electionId: {"$oid": "000000000000000000000002"}, minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], outcome: { @@ -163,7 +163,7 @@ phases: [ hosts: ["a:27017", "b:27017"], setName: "rs", minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], outcome: { diff --git a/source/server-discovery-and-monitoring/tests/rs/primary_hint_from_secondary_with_mismatched_me.json b/source/server-discovery-and-monitoring/tests/rs/primary_hint_from_secondary_with_mismatched_me.json index bc02cc9571..1ca72225a2 100644 --- a/source/server-discovery-and-monitoring/tests/rs/primary_hint_from_secondary_with_mismatched_me.json +++ b/source/server-discovery-and-monitoring/tests/rs/primary_hint_from_secondary_with_mismatched_me.json @@ -18,7 +18,7 @@ "setName": "rs", "primary": "b:27017", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], @@ -48,7 +48,7 @@ ], "setName": "rs", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/primary_hint_from_secondary_with_mismatched_me.yml b/source/server-discovery-and-monitoring/tests/rs/primary_hint_from_secondary_with_mismatched_me.yml index f5b536c01f..cebbe7d083 100644 --- a/source/server-discovery-and-monitoring/tests/rs/primary_hint_from_secondary_with_mismatched_me.yml +++ b/source/server-discovery-and-monitoring/tests/rs/primary_hint_from_secondary_with_mismatched_me.yml @@ -17,7 +17,7 @@ phases: [ setName: "rs", primary: "b:27017", minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], @@ -45,7 +45,7 @@ phases: [ hosts: ["b:27017"], setName: "rs", minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/primary_mismatched_me.json b/source/server-discovery-and-monitoring/tests/rs/primary_mismatched_me.json index 2d2c0f40d8..6bb6226f8a 100644 --- a/source/server-discovery-and-monitoring/tests/rs/primary_mismatched_me.json +++ b/source/server-discovery-and-monitoring/tests/rs/primary_mismatched_me.json @@ -31,7 +31,7 @@ "ok": 1, "setName": "rs", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ] diff --git a/source/server-discovery-and-monitoring/tests/rs/primary_mismatched_me.yml b/source/server-discovery-and-monitoring/tests/rs/primary_mismatched_me.yml index c24fd1a990..25ca1722e0 100644 --- a/source/server-discovery-and-monitoring/tests/rs/primary_mismatched_me.yml +++ b/source/server-discovery-and-monitoring/tests/rs/primary_mismatched_me.yml @@ -22,6 +22,6 @@ phases: ok: 1 setName: rs minWireVersion: 0 - maxWireVersion: 6 + maxWireVersion: 21 uri: 'mongodb://localhost:27017/?replicaSet=rs' diff --git a/source/server-discovery-and-monitoring/tests/rs/primary_reports_new_member.json b/source/server-discovery-and-monitoring/tests/rs/primary_reports_new_member.json index ac0d9374f0..ed28c48c87 100644 --- a/source/server-discovery-and-monitoring/tests/rs/primary_reports_new_member.json +++ b/source/server-discovery-and-monitoring/tests/rs/primary_reports_new_member.json @@ -17,7 +17,7 @@ "b:27017" ], "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], @@ -51,7 +51,7 @@ "b:27017" ], "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], @@ -86,7 +86,7 @@ "c:27017" ], "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], @@ -127,7 +127,7 @@ "c:27017" ], "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/primary_reports_new_member.yml b/source/server-discovery-and-monitoring/tests/rs/primary_reports_new_member.yml index de3f528fe9..aa2878d637 100644 --- a/source/server-discovery-and-monitoring/tests/rs/primary_reports_new_member.yml +++ b/source/server-discovery-and-monitoring/tests/rs/primary_reports_new_member.yml @@ -17,7 +17,7 @@ phases: [ setName: "rs", hosts: ["a:27017", "b:27017"], minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], @@ -55,7 +55,7 @@ phases: [ setName: "rs", hosts: ["a:27017", "b:27017"], minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], @@ -93,7 +93,7 @@ phases: [ setName: "rs", hosts: ["a:27017", "b:27017", "c:27017"], minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], @@ -140,7 +140,7 @@ phases: [ primary: "b:27017", hosts: ["a:27017", "b:27017", "c:27017"], minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/primary_to_no_primary_mismatched_me.json b/source/server-discovery-and-monitoring/tests/rs/primary_to_no_primary_mismatched_me.json index 6dbd73dadc..798a648d19 100644 --- a/source/server-discovery-and-monitoring/tests/rs/primary_to_no_primary_mismatched_me.json +++ b/source/server-discovery-and-monitoring/tests/rs/primary_to_no_primary_mismatched_me.json @@ -17,7 +17,7 @@ "me": "a:27017", "setName": "rs", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], @@ -52,7 +52,7 @@ "me": "c:27017", "setName": "rs", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/primary_to_no_primary_mismatched_me.yml b/source/server-discovery-and-monitoring/tests/rs/primary_to_no_primary_mismatched_me.yml index a78982c28e..e8bdb00f0f 100644 --- a/source/server-discovery-and-monitoring/tests/rs/primary_to_no_primary_mismatched_me.yml +++ b/source/server-discovery-and-monitoring/tests/rs/primary_to_no_primary_mismatched_me.yml @@ -16,7 +16,7 @@ phases: [ me: "a:27017", setName: "rs", minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], @@ -53,7 +53,7 @@ phases: [ me : "c:27017", setName: "rs", minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/primary_wrong_set_name.json b/source/server-discovery-and-monitoring/tests/rs/primary_wrong_set_name.json index cc0691fb8c..1366e38996 100644 --- a/source/server-discovery-and-monitoring/tests/rs/primary_wrong_set_name.json +++ b/source/server-discovery-and-monitoring/tests/rs/primary_wrong_set_name.json @@ -15,7 +15,7 @@ ], "setName": "wrong", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/primary_wrong_set_name.yml b/source/server-discovery-and-monitoring/tests/rs/primary_wrong_set_name.yml index d4434522a9..3e463333e6 100644 --- a/source/server-discovery-and-monitoring/tests/rs/primary_wrong_set_name.yml +++ b/source/server-discovery-and-monitoring/tests/rs/primary_wrong_set_name.yml @@ -15,7 +15,7 @@ phases: [ hosts: ["a:27017"], setName: "wrong", minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/repeated.json b/source/server-discovery-and-monitoring/tests/rs/repeated.json index 610aeae0ac..3ce0948ab8 100644 --- a/source/server-discovery-and-monitoring/tests/rs/repeated.json +++ b/source/server-discovery-and-monitoring/tests/rs/repeated.json @@ -18,7 +18,7 @@ ], "setName": "rs", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], @@ -49,7 +49,7 @@ "helloOk": true, "isWritablePrimary": true, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], @@ -84,7 +84,7 @@ ], "setName": "rs", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], @@ -120,7 +120,7 @@ ], "setName": "rs", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/repeated.yml b/source/server-discovery-and-monitoring/tests/rs/repeated.yml index f651005bab..b9e14ed982 100644 --- a/source/server-discovery-and-monitoring/tests/rs/repeated.yml +++ b/source/server-discovery-and-monitoring/tests/rs/repeated.yml @@ -15,7 +15,7 @@ phases: hosts: ["a:27017", "c:27017"] setName: "rs" minWireVersion: 0 - maxWireVersion: 6 + maxWireVersion: 21 outcome: servers: "a:27017": @@ -39,7 +39,7 @@ phases: helloOk: true isWritablePrimary: true minWireVersion: 0 - maxWireVersion: 6 + maxWireVersion: 21 outcome: servers: "a:27017": @@ -64,7 +64,7 @@ phases: hosts: ["a:27017", "c:27017"] setName: "rs" minWireVersion: 0 - maxWireVersion: 6 + maxWireVersion: 21 outcome: servers: "a:27017": @@ -90,7 +90,7 @@ phases: hosts: ["a:27017", "c:27017"] setName: "rs" minWireVersion: 0 - maxWireVersion: 6 + maxWireVersion: 21 outcome: servers: "a:27017": diff --git a/source/server-discovery-and-monitoring/tests/rs/replicaset_rsnp.json b/source/server-discovery-and-monitoring/tests/rs/replicaset_rsnp.json index 3148e1c141..1cd732b82f 100644 --- a/source/server-discovery-and-monitoring/tests/rs/replicaset_rsnp.json +++ b/source/server-discovery-and-monitoring/tests/rs/replicaset_rsnp.json @@ -11,7 +11,7 @@ "helloOk": true, "isWritablePrimary": true, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/replicaset_rsnp.yml b/source/server-discovery-and-monitoring/tests/rs/replicaset_rsnp.yml index 87e80bdb31..6bdf8cbe2d 100644 --- a/source/server-discovery-and-monitoring/tests/rs/replicaset_rsnp.yml +++ b/source/server-discovery-and-monitoring/tests/rs/replicaset_rsnp.yml @@ -11,7 +11,7 @@ phases: helloOk: true isWritablePrimary: true minWireVersion: 0 - maxWireVersion: 6 + maxWireVersion: 21 outcome: # Server is removed because it's a standalone and the driver # started in RSNP topology diff --git a/source/server-discovery-and-monitoring/tests/rs/response_from_removed.json b/source/server-discovery-and-monitoring/tests/rs/response_from_removed.json index 87a66d9e72..fa46a14ceb 100644 --- a/source/server-discovery-and-monitoring/tests/rs/response_from_removed.json +++ b/source/server-discovery-and-monitoring/tests/rs/response_from_removed.json @@ -15,7 +15,7 @@ "a:27017" ], "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], @@ -46,7 +46,7 @@ "b:27017" ], "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/response_from_removed.yml b/source/server-discovery-and-monitoring/tests/rs/response_from_removed.yml index 6ec66c8750..fc9961ce36 100644 --- a/source/server-discovery-and-monitoring/tests/rs/response_from_removed.yml +++ b/source/server-discovery-and-monitoring/tests/rs/response_from_removed.yml @@ -15,7 +15,7 @@ phases: [ setName: "rs", hosts: ["a:27017"], minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], @@ -47,7 +47,7 @@ phases: [ setName: "rs", hosts: ["a:27017", "b:27017"], minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/sec_not_auth.json b/source/server-discovery-and-monitoring/tests/rs/sec_not_auth.json index a39855e654..ccbe7a08af 100644 --- a/source/server-discovery-and-monitoring/tests/rs/sec_not_auth.json +++ b/source/server-discovery-and-monitoring/tests/rs/sec_not_auth.json @@ -16,7 +16,7 @@ "b:27017" ], "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ], [ @@ -32,7 +32,7 @@ "c:27017" ], "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/sec_not_auth.yml b/source/server-discovery-and-monitoring/tests/rs/sec_not_auth.yml index 09c75f9c78..507eb9d292 100644 --- a/source/server-discovery-and-monitoring/tests/rs/sec_not_auth.yml +++ b/source/server-discovery-and-monitoring/tests/rs/sec_not_auth.yml @@ -15,7 +15,7 @@ phases: [ setName: "rs", hosts: ["a:27017", "b:27017"], minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }], ["b:27017", { @@ -27,7 +27,7 @@ phases: [ setName: "rs", hosts: ["b:27017", "c:27017"], minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/secondary_ignore_ok_0-pre-6.0.json b/source/server-discovery-and-monitoring/tests/rs/secondary_ignore_ok_0-pre-6.0.json index 054425c84c..f27060533c 100644 --- a/source/server-discovery-and-monitoring/tests/rs/secondary_ignore_ok_0-pre-6.0.json +++ b/source/server-discovery-and-monitoring/tests/rs/secondary_ignore_ok_0-pre-6.0.json @@ -16,7 +16,7 @@ "b:27017" ], "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ], [ @@ -32,7 +32,7 @@ "b:27017" ], "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], @@ -59,7 +59,7 @@ { "ok": 0, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/secondary_ignore_ok_0-pre-6.0.yml b/source/server-discovery-and-monitoring/tests/rs/secondary_ignore_ok_0-pre-6.0.yml index de9048d401..b63c43f227 100644 --- a/source/server-discovery-and-monitoring/tests/rs/secondary_ignore_ok_0-pre-6.0.yml +++ b/source/server-discovery-and-monitoring/tests/rs/secondary_ignore_ok_0-pre-6.0.yml @@ -15,7 +15,7 @@ phases: [ setName: "rs", hosts: ["a:27017", "b:27017"], minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }], ["b:27017", { @@ -26,7 +26,7 @@ phases: [ setName: "rs", hosts: ["a:27017", "b:27017"], minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], @@ -59,7 +59,7 @@ phases: [ ok: 0, minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/secondary_ignore_ok_0.json b/source/server-discovery-and-monitoring/tests/rs/secondary_ignore_ok_0.json index ee9519930b..9ffff58ef0 100644 --- a/source/server-discovery-and-monitoring/tests/rs/secondary_ignore_ok_0.json +++ b/source/server-discovery-and-monitoring/tests/rs/secondary_ignore_ok_0.json @@ -16,7 +16,7 @@ "b:27017" ], "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ], [ @@ -32,7 +32,7 @@ "b:27017" ], "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], @@ -59,7 +59,7 @@ { "ok": 0, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/secondary_ignore_ok_0.yml b/source/server-discovery-and-monitoring/tests/rs/secondary_ignore_ok_0.yml index d94fafaf99..796e7f668e 100644 --- a/source/server-discovery-and-monitoring/tests/rs/secondary_ignore_ok_0.yml +++ b/source/server-discovery-and-monitoring/tests/rs/secondary_ignore_ok_0.yml @@ -15,7 +15,7 @@ phases: [ setName: "rs", hosts: ["a:27017", "b:27017"], minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }], ["b:27017", { @@ -26,7 +26,7 @@ phases: [ setName: "rs", hosts: ["a:27017", "b:27017"], minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], @@ -59,7 +59,7 @@ phases: [ ok: 0, minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/secondary_mismatched_me.json b/source/server-discovery-and-monitoring/tests/rs/secondary_mismatched_me.json index 6f1b9b5986..790e4bfca8 100644 --- a/source/server-discovery-and-monitoring/tests/rs/secondary_mismatched_me.json +++ b/source/server-discovery-and-monitoring/tests/rs/secondary_mismatched_me.json @@ -32,7 +32,7 @@ "ok": 1, "setName": "rs", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ] diff --git a/source/server-discovery-and-monitoring/tests/rs/secondary_mismatched_me.yml b/source/server-discovery-and-monitoring/tests/rs/secondary_mismatched_me.yml index e5f0f9aceb..d359609d83 100644 --- a/source/server-discovery-and-monitoring/tests/rs/secondary_mismatched_me.yml +++ b/source/server-discovery-and-monitoring/tests/rs/secondary_mismatched_me.yml @@ -25,4 +25,4 @@ phases: ok: 1 setName: rs minWireVersion: 0 - maxWireVersion: 6 + maxWireVersion: 21 diff --git a/source/server-discovery-and-monitoring/tests/rs/secondary_wrong_set_name.json b/source/server-discovery-and-monitoring/tests/rs/secondary_wrong_set_name.json index 8d2f152f59..1f86b50543 100644 --- a/source/server-discovery-and-monitoring/tests/rs/secondary_wrong_set_name.json +++ b/source/server-discovery-and-monitoring/tests/rs/secondary_wrong_set_name.json @@ -16,7 +16,7 @@ ], "setName": "wrong", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/secondary_wrong_set_name.yml b/source/server-discovery-and-monitoring/tests/rs/secondary_wrong_set_name.yml index 0121d631ce..60823815f0 100644 --- a/source/server-discovery-and-monitoring/tests/rs/secondary_wrong_set_name.yml +++ b/source/server-discovery-and-monitoring/tests/rs/secondary_wrong_set_name.yml @@ -16,7 +16,7 @@ phases: [ hosts: ["a:27017"], setName: "wrong", minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/secondary_wrong_set_name_with_primary.json b/source/server-discovery-and-monitoring/tests/rs/secondary_wrong_set_name_with_primary.json index b7ef2d6d6a..6b89914151 100644 --- a/source/server-discovery-and-monitoring/tests/rs/secondary_wrong_set_name_with_primary.json +++ b/source/server-discovery-and-monitoring/tests/rs/secondary_wrong_set_name_with_primary.json @@ -16,7 +16,7 @@ ], "setName": "rs", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], @@ -51,7 +51,7 @@ ], "setName": "wrong", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/secondary_wrong_set_name_with_primary.yml b/source/server-discovery-and-monitoring/tests/rs/secondary_wrong_set_name_with_primary.yml index acd471e78b..8d1990363c 100644 --- a/source/server-discovery-and-monitoring/tests/rs/secondary_wrong_set_name_with_primary.yml +++ b/source/server-discovery-and-monitoring/tests/rs/secondary_wrong_set_name_with_primary.yml @@ -15,7 +15,7 @@ phases: [ hosts: ["a:27017", "b:27017"], setName: "rs", minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], @@ -53,7 +53,7 @@ phases: [ hosts: ["a:27017", "b:27017"], setName: "wrong", minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/setversion_without_electionid-pre-6.0.json b/source/server-discovery-and-monitoring/tests/rs/setversion_without_electionid-pre-6.0.json index c2e2fe5b9b..e62c6963ed 100644 --- a/source/server-discovery-and-monitoring/tests/rs/setversion_without_electionid-pre-6.0.json +++ b/source/server-discovery-and-monitoring/tests/rs/setversion_without_electionid-pre-6.0.json @@ -17,7 +17,7 @@ "setName": "rs", "setVersion": 2, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 7 } ] ], @@ -56,7 +56,7 @@ "setName": "rs", "setVersion": 1, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 7 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/setversion_without_electionid-pre-6.0.yml b/source/server-discovery-and-monitoring/tests/rs/setversion_without_electionid-pre-6.0.yml index 54bfa4d256..0fe6819aa7 100644 --- a/source/server-discovery-and-monitoring/tests/rs/setversion_without_electionid-pre-6.0.yml +++ b/source/server-discovery-and-monitoring/tests/rs/setversion_without_electionid-pre-6.0.yml @@ -15,7 +15,7 @@ phases: [ setName: "rs", setVersion: 2, minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 7 }] ], @@ -52,7 +52,7 @@ phases: [ setName: "rs", setVersion: 1, minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 7 }] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/stepdown_change_set_name.json b/source/server-discovery-and-monitoring/tests/rs/stepdown_change_set_name.json index e9075f97f2..6de995518d 100644 --- a/source/server-discovery-and-monitoring/tests/rs/stepdown_change_set_name.json +++ b/source/server-discovery-and-monitoring/tests/rs/stepdown_change_set_name.json @@ -15,7 +15,7 @@ ], "setName": "rs", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], @@ -45,7 +45,7 @@ ], "setName": "wrong", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/stepdown_change_set_name.yml b/source/server-discovery-and-monitoring/tests/rs/stepdown_change_set_name.yml index 9c4140925d..2e1c1a551e 100644 --- a/source/server-discovery-and-monitoring/tests/rs/stepdown_change_set_name.yml +++ b/source/server-discovery-and-monitoring/tests/rs/stepdown_change_set_name.yml @@ -16,7 +16,7 @@ phases: [ hosts: ["a:27017"], setName: "rs", minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], @@ -50,7 +50,7 @@ phases: [ hosts: ["a:27017"], setName: "wrong", minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/too_new.json b/source/server-discovery-and-monitoring/tests/rs/too_new.json index 0433d27a36..696246f8e1 100644 --- a/source/server-discovery-and-monitoring/tests/rs/too_new.json +++ b/source/server-discovery-and-monitoring/tests/rs/too_new.json @@ -16,7 +16,7 @@ "b:27017" ], "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ], [ diff --git a/source/server-discovery-and-monitoring/tests/rs/too_new.yml b/source/server-discovery-and-monitoring/tests/rs/too_new.yml index 52912826be..121286554e 100644 --- a/source/server-discovery-and-monitoring/tests/rs/too_new.yml +++ b/source/server-discovery-and-monitoring/tests/rs/too_new.yml @@ -12,7 +12,7 @@ phases: [ setName: "rs", hosts: ["a:27017", "b:27017"], minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }], ["b:27017", { ok: 1, diff --git a/source/server-discovery-and-monitoring/tests/rs/too_old.json b/source/server-discovery-and-monitoring/tests/rs/too_old.json index 461d00acc4..8100a663f5 100644 --- a/source/server-discovery-and-monitoring/tests/rs/too_old.json +++ b/source/server-discovery-and-monitoring/tests/rs/too_old.json @@ -16,7 +16,7 @@ "b:27017" ], "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ], [ diff --git a/source/server-discovery-and-monitoring/tests/rs/too_old.yml b/source/server-discovery-and-monitoring/tests/rs/too_old.yml index ab238dbab9..1fe611fbb9 100644 --- a/source/server-discovery-and-monitoring/tests/rs/too_old.yml +++ b/source/server-discovery-and-monitoring/tests/rs/too_old.yml @@ -10,7 +10,7 @@ phases: [ setName: "rs", hosts: ["a:27017", "b:27017"], minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }], ["b:27017", { ok: 1, diff --git a/source/server-discovery-and-monitoring/tests/rs/unexpected_mongos.json b/source/server-discovery-and-monitoring/tests/rs/unexpected_mongos.json index cc19a961f2..c6ffb321ca 100644 --- a/source/server-discovery-and-monitoring/tests/rs/unexpected_mongos.json +++ b/source/server-discovery-and-monitoring/tests/rs/unexpected_mongos.json @@ -12,7 +12,7 @@ "isWritablePrimary": true, "msg": "isdbgrid", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/unexpected_mongos.yml b/source/server-discovery-and-monitoring/tests/rs/unexpected_mongos.yml index d0d8547f96..a9c5a24ee6 100644 --- a/source/server-discovery-and-monitoring/tests/rs/unexpected_mongos.yml +++ b/source/server-discovery-and-monitoring/tests/rs/unexpected_mongos.yml @@ -14,7 +14,7 @@ phases: [ isWritablePrimary: true, msg: "isdbgrid", minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/use_setversion_without_electionid-pre-6.0.json b/source/server-discovery-and-monitoring/tests/rs/use_setversion_without_electionid-pre-6.0.json index 5c58b65614..2f9b567b85 100644 --- a/source/server-discovery-and-monitoring/tests/rs/use_setversion_without_electionid-pre-6.0.json +++ b/source/server-discovery-and-monitoring/tests/rs/use_setversion_without_electionid-pre-6.0.json @@ -20,7 +20,7 @@ "$oid": "000000000000000000000001" }, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 7 } ] ], @@ -64,7 +64,7 @@ "setName": "rs", "setVersion": 2, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 7 } ] ], @@ -108,7 +108,7 @@ "$oid": "000000000000000000000002" }, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 7 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/use_setversion_without_electionid-pre-6.0.yml b/source/server-discovery-and-monitoring/tests/rs/use_setversion_without_electionid-pre-6.0.yml index a0434eb45c..24d6accbe0 100644 --- a/source/server-discovery-and-monitoring/tests/rs/use_setversion_without_electionid-pre-6.0.yml +++ b/source/server-discovery-and-monitoring/tests/rs/use_setversion_without_electionid-pre-6.0.yml @@ -16,7 +16,7 @@ phases: [ setVersion: 1, electionId: {"$oid": "000000000000000000000001"}, minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 7 }] ], @@ -53,7 +53,7 @@ phases: [ setName: "rs", setVersion: 2, minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 7 }] ], @@ -91,7 +91,7 @@ phases: [ setVersion: 1, electionId: {"$oid": "000000000000000000000002"}, minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 7 }] ], outcome: { diff --git a/source/server-discovery-and-monitoring/tests/rs/wrong_set_name.json b/source/server-discovery-and-monitoring/tests/rs/wrong_set_name.json index 9654ff7b79..d0764d24dc 100644 --- a/source/server-discovery-and-monitoring/tests/rs/wrong_set_name.json +++ b/source/server-discovery-and-monitoring/tests/rs/wrong_set_name.json @@ -17,7 +17,7 @@ ], "setName": "wrong", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/wrong_set_name.yml b/source/server-discovery-and-monitoring/tests/rs/wrong_set_name.yml index ae75d6f7e4..e7d3ace92d 100644 --- a/source/server-discovery-and-monitoring/tests/rs/wrong_set_name.yml +++ b/source/server-discovery-and-monitoring/tests/rs/wrong_set_name.yml @@ -16,7 +16,7 @@ phases: [ hosts: ["b:27017", "c:27017"], setName: "wrong", minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/sharded/discover_single_mongos.json b/source/server-discovery-and-monitoring/tests/sharded/discover_single_mongos.json index 9e877a0840..bf7e57521c 100644 --- a/source/server-discovery-and-monitoring/tests/sharded/discover_single_mongos.json +++ b/source/server-discovery-and-monitoring/tests/sharded/discover_single_mongos.json @@ -12,7 +12,7 @@ "isWritablePrimary": true, "msg": "isdbgrid", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/sharded/discover_single_mongos.yml b/source/server-discovery-and-monitoring/tests/sharded/discover_single_mongos.yml index f44a2970dd..1e8adc6c5c 100644 --- a/source/server-discovery-and-monitoring/tests/sharded/discover_single_mongos.yml +++ b/source/server-discovery-and-monitoring/tests/sharded/discover_single_mongos.yml @@ -13,7 +13,7 @@ phases: isWritablePrimary: true msg: "isdbgrid" minWireVersion: 0 - maxWireVersion: 6 + maxWireVersion: 21 outcome: servers: diff --git a/source/server-discovery-and-monitoring/tests/sharded/ls_timeout_mongos.json b/source/server-discovery-and-monitoring/tests/sharded/ls_timeout_mongos.json index 93fa398d52..3da0f84ca2 100644 --- a/source/server-discovery-and-monitoring/tests/sharded/ls_timeout_mongos.json +++ b/source/server-discovery-and-monitoring/tests/sharded/ls_timeout_mongos.json @@ -13,7 +13,7 @@ "msg": "isdbgrid", "logicalSessionTimeoutMinutes": 1, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ], [ @@ -25,7 +25,7 @@ "msg": "isdbgrid", "logicalSessionTimeoutMinutes": 2, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], @@ -56,7 +56,7 @@ "msg": "isdbgrid", "logicalSessionTimeoutMinutes": 1, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ], [ @@ -67,7 +67,7 @@ "isWritablePrimary": true, "msg": "isdbgrid", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/sharded/ls_timeout_mongos.yml b/source/server-discovery-and-monitoring/tests/sharded/ls_timeout_mongos.yml index 7f78d0d6c6..62ae97f057 100644 --- a/source/server-discovery-and-monitoring/tests/sharded/ls_timeout_mongos.yml +++ b/source/server-discovery-and-monitoring/tests/sharded/ls_timeout_mongos.yml @@ -15,7 +15,7 @@ phases: [ msg: "isdbgrid", logicalSessionTimeoutMinutes: 1, minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }], ["b:27017", { @@ -26,7 +26,7 @@ phases: [ msg: "isdbgrid", logicalSessionTimeoutMinutes: 2, minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], @@ -63,7 +63,7 @@ phases: [ msg: "isdbgrid", logicalSessionTimeoutMinutes: 1, minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }], ["b:27017", { @@ -73,7 +73,7 @@ phases: [ isWritablePrimary: true, msg: "isdbgrid", minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/sharded/mongos_disconnect.json b/source/server-discovery-and-monitoring/tests/sharded/mongos_disconnect.json index 50a93eda5f..29b3351869 100644 --- a/source/server-discovery-and-monitoring/tests/sharded/mongos_disconnect.json +++ b/source/server-discovery-and-monitoring/tests/sharded/mongos_disconnect.json @@ -12,7 +12,7 @@ "isWritablePrimary": true, "msg": "isdbgrid", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ], [ @@ -23,7 +23,7 @@ "isWritablePrimary": true, "msg": "isdbgrid", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], @@ -76,7 +76,7 @@ "isWritablePrimary": true, "msg": "isdbgrid", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/sharded/mongos_disconnect.yml b/source/server-discovery-and-monitoring/tests/sharded/mongos_disconnect.yml index c4393d85b1..c384b3be11 100644 --- a/source/server-discovery-and-monitoring/tests/sharded/mongos_disconnect.yml +++ b/source/server-discovery-and-monitoring/tests/sharded/mongos_disconnect.yml @@ -14,7 +14,7 @@ phases: [ isWritablePrimary: true, msg: "isdbgrid", minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }], ["b:27017", { @@ -24,7 +24,7 @@ phases: [ isWritablePrimary: true, msg: "isdbgrid", minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], @@ -85,7 +85,7 @@ phases: [ isWritablePrimary: true, msg: "isdbgrid", minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }], ], diff --git a/source/server-discovery-and-monitoring/tests/sharded/multiple_mongoses.json b/source/server-discovery-and-monitoring/tests/sharded/multiple_mongoses.json index 311592d715..ae0c2d9cde 100644 --- a/source/server-discovery-and-monitoring/tests/sharded/multiple_mongoses.json +++ b/source/server-discovery-and-monitoring/tests/sharded/multiple_mongoses.json @@ -12,7 +12,7 @@ "isWritablePrimary": true, "msg": "isdbgrid", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ], [ @@ -23,7 +23,7 @@ "isWritablePrimary": true, "msg": "isdbgrid", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/sharded/multiple_mongoses.yml b/source/server-discovery-and-monitoring/tests/sharded/multiple_mongoses.yml index 0a49d64249..6311605a89 100644 --- a/source/server-discovery-and-monitoring/tests/sharded/multiple_mongoses.yml +++ b/source/server-discovery-and-monitoring/tests/sharded/multiple_mongoses.yml @@ -14,7 +14,7 @@ phases: [ isWritablePrimary: true, msg: "isdbgrid", minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }], ["b:27017", { @@ -24,7 +24,7 @@ phases: [ isWritablePrimary: true, msg: "isdbgrid", minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/sharded/non_mongos_removed.json b/source/server-discovery-and-monitoring/tests/sharded/non_mongos_removed.json index d74375ebbf..4698f576d5 100644 --- a/source/server-discovery-and-monitoring/tests/sharded/non_mongos_removed.json +++ b/source/server-discovery-and-monitoring/tests/sharded/non_mongos_removed.json @@ -12,7 +12,7 @@ "isWritablePrimary": true, "msg": "isdbgrid", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ], [ @@ -26,7 +26,7 @@ ], "setName": "rs", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/sharded/non_mongos_removed.yml b/source/server-discovery-and-monitoring/tests/sharded/non_mongos_removed.yml index ab25349bda..aa604f1100 100644 --- a/source/server-discovery-and-monitoring/tests/sharded/non_mongos_removed.yml +++ b/source/server-discovery-and-monitoring/tests/sharded/non_mongos_removed.yml @@ -14,7 +14,7 @@ phases: [ isWritablePrimary: true, msg: "isdbgrid", minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }], ["b:27017", { @@ -25,7 +25,7 @@ phases: [ hosts: ["b:27017"], setName: "rs", minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/sharded/too_old.json b/source/server-discovery-and-monitoring/tests/sharded/too_old.json index 688e1db0f5..b918715ada 100644 --- a/source/server-discovery-and-monitoring/tests/sharded/too_old.json +++ b/source/server-discovery-and-monitoring/tests/sharded/too_old.json @@ -12,7 +12,7 @@ "isWritablePrimary": true, "msg": "isdbgrid", "minWireVersion": 2, - "maxWireVersion": 6 + "maxWireVersion": 21 } ], [ diff --git a/source/server-discovery-and-monitoring/tests/sharded/too_old.yml b/source/server-discovery-and-monitoring/tests/sharded/too_old.yml index 925a8f55b8..a709934c2f 100644 --- a/source/server-discovery-and-monitoring/tests/sharded/too_old.yml +++ b/source/server-discovery-and-monitoring/tests/sharded/too_old.yml @@ -9,7 +9,7 @@ phases: [ isWritablePrimary: true, msg: "isdbgrid", minWireVersion: 2, - maxWireVersion: 6 + maxWireVersion: 21 }], ["b:27017", { ok: 1, diff --git a/source/server-discovery-and-monitoring/tests/single/direct_connection_external_ip.json b/source/server-discovery-and-monitoring/tests/single/direct_connection_external_ip.json index 90676a8f9b..1461b4c469 100644 --- a/source/server-discovery-and-monitoring/tests/single/direct_connection_external_ip.json +++ b/source/server-discovery-and-monitoring/tests/single/direct_connection_external_ip.json @@ -15,7 +15,7 @@ ], "setName": "rs", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/single/direct_connection_external_ip.yml b/source/server-discovery-and-monitoring/tests/single/direct_connection_external_ip.yml index 18c01226a9..0cb73c50e2 100644 --- a/source/server-discovery-and-monitoring/tests/single/direct_connection_external_ip.yml +++ b/source/server-discovery-and-monitoring/tests/single/direct_connection_external_ip.yml @@ -15,7 +15,7 @@ phases: [ hosts: ["b:27017"], # Internal IP. setName: "rs", minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/single/direct_connection_mongos.json b/source/server-discovery-and-monitoring/tests/single/direct_connection_mongos.json index 25fe965185..72be020862 100644 --- a/source/server-discovery-and-monitoring/tests/single/direct_connection_mongos.json +++ b/source/server-discovery-and-monitoring/tests/single/direct_connection_mongos.json @@ -12,7 +12,7 @@ "isWritablePrimary": true, "msg": "isdbgrid", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/single/direct_connection_mongos.yml b/source/server-discovery-and-monitoring/tests/single/direct_connection_mongos.yml index 853ce57c17..e81c9aef9b 100644 --- a/source/server-discovery-and-monitoring/tests/single/direct_connection_mongos.yml +++ b/source/server-discovery-and-monitoring/tests/single/direct_connection_mongos.yml @@ -14,7 +14,7 @@ phases: [ isWritablePrimary: true, msg: "isdbgrid", minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/single/direct_connection_replicaset.json b/source/server-discovery-and-monitoring/tests/single/direct_connection_replicaset.json index cd8660888a..82a51d390e 100644 --- a/source/server-discovery-and-monitoring/tests/single/direct_connection_replicaset.json +++ b/source/server-discovery-and-monitoring/tests/single/direct_connection_replicaset.json @@ -12,7 +12,7 @@ "isWritablePrimary": true, "setName": "rs", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/single/direct_connection_replicaset.yml b/source/server-discovery-and-monitoring/tests/single/direct_connection_replicaset.yml index 21e565fd9c..9a0f3996ca 100644 --- a/source/server-discovery-and-monitoring/tests/single/direct_connection_replicaset.yml +++ b/source/server-discovery-and-monitoring/tests/single/direct_connection_replicaset.yml @@ -12,7 +12,7 @@ phases: isWritablePrimary: true setName: rs minWireVersion: 0 - maxWireVersion: 6 + maxWireVersion: 21 outcome: servers: "a:27017": diff --git a/source/server-discovery-and-monitoring/tests/single/direct_connection_rsarbiter.json b/source/server-discovery-and-monitoring/tests/single/direct_connection_rsarbiter.json index e204956056..e06d284364 100644 --- a/source/server-discovery-and-monitoring/tests/single/direct_connection_rsarbiter.json +++ b/source/server-discovery-and-monitoring/tests/single/direct_connection_rsarbiter.json @@ -17,7 +17,7 @@ ], "setName": "rs", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/single/direct_connection_rsarbiter.yml b/source/server-discovery-and-monitoring/tests/single/direct_connection_rsarbiter.yml index 7e262c9dbe..d9fa876655 100644 --- a/source/server-discovery-and-monitoring/tests/single/direct_connection_rsarbiter.yml +++ b/source/server-discovery-and-monitoring/tests/single/direct_connection_rsarbiter.yml @@ -16,7 +16,7 @@ phases: [ hosts: ["a:27017", "b:27017"], setName: "rs", minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/single/direct_connection_rsprimary.json b/source/server-discovery-and-monitoring/tests/single/direct_connection_rsprimary.json index 409e8502b3..45eb1602fb 100644 --- a/source/server-discovery-and-monitoring/tests/single/direct_connection_rsprimary.json +++ b/source/server-discovery-and-monitoring/tests/single/direct_connection_rsprimary.json @@ -16,7 +16,7 @@ ], "setName": "rs", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/single/direct_connection_rsprimary.yml b/source/server-discovery-and-monitoring/tests/single/direct_connection_rsprimary.yml index 4ea0b1551f..85dcb30a7c 100644 --- a/source/server-discovery-and-monitoring/tests/single/direct_connection_rsprimary.yml +++ b/source/server-discovery-and-monitoring/tests/single/direct_connection_rsprimary.yml @@ -15,7 +15,7 @@ phases: [ hosts: ["a:27017", "b:27017"], setName: "rs", minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/single/direct_connection_rssecondary.json b/source/server-discovery-and-monitoring/tests/single/direct_connection_rssecondary.json index 305f283b52..b1bef8a49f 100644 --- a/source/server-discovery-and-monitoring/tests/single/direct_connection_rssecondary.json +++ b/source/server-discovery-and-monitoring/tests/single/direct_connection_rssecondary.json @@ -17,7 +17,7 @@ ], "setName": "rs", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/single/direct_connection_rssecondary.yml b/source/server-discovery-and-monitoring/tests/single/direct_connection_rssecondary.yml index b0c4d1f218..2d7da65e41 100644 --- a/source/server-discovery-and-monitoring/tests/single/direct_connection_rssecondary.yml +++ b/source/server-discovery-and-monitoring/tests/single/direct_connection_rssecondary.yml @@ -16,7 +16,7 @@ phases: [ hosts: ["a:27017", "b:27017"], setName: "rs", minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/single/direct_connection_standalone.json b/source/server-discovery-and-monitoring/tests/single/direct_connection_standalone.json index b47278482a..e71ba07e74 100644 --- a/source/server-discovery-and-monitoring/tests/single/direct_connection_standalone.json +++ b/source/server-discovery-and-monitoring/tests/single/direct_connection_standalone.json @@ -11,7 +11,7 @@ "helloOk": true, "isWritablePrimary": true, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/single/direct_connection_standalone.yml b/source/server-discovery-and-monitoring/tests/single/direct_connection_standalone.yml index cd71087e4d..ab4cb02ad4 100644 --- a/source/server-discovery-and-monitoring/tests/single/direct_connection_standalone.yml +++ b/source/server-discovery-and-monitoring/tests/single/direct_connection_standalone.yml @@ -13,7 +13,7 @@ phases: [ helloOk: true, isWritablePrimary: true, minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/single/direct_connection_wrong_set_name.json b/source/server-discovery-and-monitoring/tests/single/direct_connection_wrong_set_name.json index 71080e6810..8014a0a533 100644 --- a/source/server-discovery-and-monitoring/tests/single/direct_connection_wrong_set_name.json +++ b/source/server-discovery-and-monitoring/tests/single/direct_connection_wrong_set_name.json @@ -16,7 +16,7 @@ ], "setName": "wrong", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], @@ -45,7 +45,7 @@ ], "setName": "rs", "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/single/direct_connection_wrong_set_name.yml b/source/server-discovery-and-monitoring/tests/single/direct_connection_wrong_set_name.yml index f1e48dc419..46b476d049 100644 --- a/source/server-discovery-and-monitoring/tests/single/direct_connection_wrong_set_name.yml +++ b/source/server-discovery-and-monitoring/tests/single/direct_connection_wrong_set_name.yml @@ -11,7 +11,7 @@ phases: - b:27017 setName: wrong minWireVersion: 0 - maxWireVersion: 6 + maxWireVersion: 21 outcome: servers: a:27017: @@ -29,7 +29,7 @@ phases: - b:27017 setName: rs minWireVersion: 0 - maxWireVersion: 6 + maxWireVersion: 21 outcome: servers: a:27017: diff --git a/source/server-discovery-and-monitoring/tests/single/discover_standalone.json b/source/server-discovery-and-monitoring/tests/single/discover_standalone.json index 858cbdaf63..d78c81654b 100644 --- a/source/server-discovery-and-monitoring/tests/single/discover_standalone.json +++ b/source/server-discovery-and-monitoring/tests/single/discover_standalone.json @@ -11,7 +11,7 @@ "helloOk": true, "isWritablePrimary": true, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/single/discover_standalone.yml b/source/server-discovery-and-monitoring/tests/single/discover_standalone.yml index 49ebb14209..bc112d4eac 100644 --- a/source/server-discovery-and-monitoring/tests/single/discover_standalone.yml +++ b/source/server-discovery-and-monitoring/tests/single/discover_standalone.yml @@ -13,7 +13,7 @@ phases: [ helloOk: true, isWritablePrimary: true, minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/single/ls_timeout_standalone.json b/source/server-discovery-and-monitoring/tests/single/ls_timeout_standalone.json index 87b3e4e8a1..236eabe00a 100644 --- a/source/server-discovery-and-monitoring/tests/single/ls_timeout_standalone.json +++ b/source/server-discovery-and-monitoring/tests/single/ls_timeout_standalone.json @@ -12,7 +12,7 @@ "isWritablePrimary": true, "logicalSessionTimeoutMinutes": 7, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/single/ls_timeout_standalone.yml b/source/server-discovery-and-monitoring/tests/single/ls_timeout_standalone.yml index 2926d95a9d..4747af6770 100644 --- a/source/server-discovery-and-monitoring/tests/single/ls_timeout_standalone.yml +++ b/source/server-discovery-and-monitoring/tests/single/ls_timeout_standalone.yml @@ -14,7 +14,7 @@ phases: [ isWritablePrimary: true, logicalSessionTimeoutMinutes: 7, minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/single/not_ok_response.json b/source/server-discovery-and-monitoring/tests/single/not_ok_response.json index 8e7c2a10e3..cfaac3564a 100644 --- a/source/server-discovery-and-monitoring/tests/single/not_ok_response.json +++ b/source/server-discovery-and-monitoring/tests/single/not_ok_response.json @@ -11,7 +11,7 @@ "helloOk": true, "isWritablePrimary": true, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ], [ @@ -21,7 +21,7 @@ "helloOk": true, "isWritablePrimary": true, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/single/not_ok_response.yml b/source/server-discovery-and-monitoring/tests/single/not_ok_response.yml index 64103a5902..c1ae7d9875 100644 --- a/source/server-discovery-and-monitoring/tests/single/not_ok_response.yml +++ b/source/server-discovery-and-monitoring/tests/single/not_ok_response.yml @@ -13,7 +13,7 @@ phases: [ helloOk: true, isWritablePrimary: true, minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }], ["a:27017", { @@ -22,7 +22,7 @@ phases: [ helloOk: true, isWritablePrimary: true, minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/single/standalone_removed.json b/source/server-discovery-and-monitoring/tests/single/standalone_removed.json index 57f8f861b1..675cdbb008 100644 --- a/source/server-discovery-and-monitoring/tests/single/standalone_removed.json +++ b/source/server-discovery-and-monitoring/tests/single/standalone_removed.json @@ -11,7 +11,7 @@ "helloOk": true, "isWritablePrimary": true, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/single/standalone_removed.yml b/source/server-discovery-and-monitoring/tests/single/standalone_removed.yml index 59b44b162e..c8404463f7 100644 --- a/source/server-discovery-and-monitoring/tests/single/standalone_removed.yml +++ b/source/server-discovery-and-monitoring/tests/single/standalone_removed.yml @@ -13,7 +13,7 @@ phases: [ helloOk: true, isWritablePrimary: true, minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ], diff --git a/source/server-discovery-and-monitoring/tests/single/standalone_using_legacy_hello.json b/source/server-discovery-and-monitoring/tests/single/standalone_using_legacy_hello.json index 46660fa8de..488cac4918 100644 --- a/source/server-discovery-and-monitoring/tests/single/standalone_using_legacy_hello.json +++ b/source/server-discovery-and-monitoring/tests/single/standalone_using_legacy_hello.json @@ -10,7 +10,7 @@ "ok": 1, "ismaster": true, "minWireVersion": 0, - "maxWireVersion": 6 + "maxWireVersion": 21 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/single/standalone_using_legacy_hello.yml b/source/server-discovery-and-monitoring/tests/single/standalone_using_legacy_hello.yml index a18ecb70fc..82c6ccfa7b 100644 --- a/source/server-discovery-and-monitoring/tests/single/standalone_using_legacy_hello.yml +++ b/source/server-discovery-and-monitoring/tests/single/standalone_using_legacy_hello.yml @@ -12,7 +12,7 @@ phases: [ ok: 1, ismaster: true, minWireVersion: 0, - maxWireVersion: 6 + maxWireVersion: 21 }] ],