Skip to content

Commit

Permalink
test(DRIVERS-2511): update wire versions for 4.0+
Browse files Browse the repository at this point in the history
  • Loading branch information
durran committed Aug 9, 2024
1 parent 83b2526 commit d7bace9
Show file tree
Hide file tree
Showing 230 changed files with 510 additions and 510 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions source/max-staleness/tests/ReplicaSetNoPrimary/Nearest.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions source/max-staleness/tests/ReplicaSetNoPrimary/Nearest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions source/max-staleness/tests/ReplicaSetNoPrimary/Nearest2.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions source/max-staleness/tests/ReplicaSetNoPrimary/Nearest2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading

0 comments on commit d7bace9

Please sign in to comment.