Skip to content

Commit

Permalink
test(DRIVERS-2511): update wire versions for 4.0+ (#1629)
Browse files Browse the repository at this point in the history
  • Loading branch information
durran authored Aug 12, 2024
1 parent 6c54383 commit 348d2f3
Show file tree
Hide file tree
Showing 232 changed files with 514 additions and 510 deletions.
2 changes: 2 additions & 0 deletions source/max-staleness/max-staleness.md
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,8 @@ client-side setting.

## Changelog

- 2024-08-09: Updated wire versions in tests to 4.0+.

- 2024-04-30: Migrated from reStructuredText to Markdown.

- 2022-10-05: Remove spec front matter and revise changelog.
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,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 348d2f3

Please sign in to comment.