Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(DRIVERS-2511): update wire versions for 4.0+ #1629

Merged
merged 1 commit into from
Aug 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
durran marked this conversation as resolved.
Show resolved Hide resolved
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
Loading