Skip to content

CSHARP-5547: Remove support for MongoDB 4.0 #1719

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

Merged
merged 7 commits into from
Jul 3, 2025
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
10 changes: 3 additions & 7 deletions evergreen/evergreen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1771,10 +1771,6 @@ axes:
display_name: "4.2"
variables:
VERSION: "4.2"
- id: "4.0"
display_name: "4.0"
variables:
VERSION: "4.0"

- id: os
display_name: OS
Expand Down Expand Up @@ -2309,7 +2305,7 @@ buildvariants:
- name: test-net60

- matrix_name: "secure-tests-linux-1804"
matrix_spec: { version: ["4.0", "4.2", "4.4", "5.0", "6.0"], topology: "*", auth: "auth", ssl: "ssl", os: "ubuntu-1804" }
matrix_spec: { version: ["4.2", "4.4", "5.0", "6.0"], topology: "*", auth: "auth", ssl: "ssl", os: "ubuntu-1804" }
display_name: "${version} ${topology} ${auth} ${ssl} ${os}"
tags: ["tests-variant"]
tasks:
Expand Down Expand Up @@ -2344,7 +2340,7 @@ buildvariants:
- name: test-net60

- matrix_name: "unsecure-tests-linux-1804"
matrix_spec: { version: ["4.0", "4.2", "4.4", "5.0", "6.0"], topology: "*", auth: "noauth", ssl: "nossl", os: "ubuntu-1804" }
matrix_spec: { version: ["4.2", "4.4", "5.0", "6.0"], topology: "*", auth: "noauth", ssl: "nossl", os: "ubuntu-1804" }
display_name: "${version} ${topology} ${auth} ${ssl} ${os}"
tags: ["tests-variant"]
tasks:
Expand Down Expand Up @@ -2379,7 +2375,7 @@ buildvariants:
- name: test-net60

- matrix_name: "tests-compression-linux-1804"
matrix_spec: { compressor: "*", auth: "noauth", ssl: "nossl", version: ["4.0", "4.2", "4.4", "5.0", "6.0"], topology: "standalone", os: "ubuntu-1804" }
matrix_spec: { compressor: "*", auth: "noauth", ssl: "nossl", version: ["4.2", "4.4", "5.0", "6.0"], topology: "standalone", os: "ubuntu-1804" }
display_name: "${version} ${compressor} ${topology} ${auth} ${ssl} ${os} "
tags: ["tests-variant"]
tasks:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"type": "RSSecondary",
"avg_rtt_ms": 50,
"lastUpdateTime": 0,
"maxWireVersion": 6,
"maxWireVersion": 21,
"lastWrite": {
"lastWriteDate": {
"$numberLong": "1000001"
Expand All @@ -19,7 +19,7 @@
"type": "RSSecondary",
"avg_rtt_ms": 5,
"lastUpdateTime": 0,
"maxWireVersion": 6,
"maxWireVersion": 21,
"lastWrite": {
"lastWriteDate": {
"$numberLong": "1"
Expand All @@ -37,7 +37,7 @@
"type": "RSSecondary",
"avg_rtt_ms": 50,
"lastUpdateTime": 0,
"maxWireVersion": 6,
"maxWireVersion": 21,
"lastWrite": {
"lastWriteDate": {
"$numberLong": "1000001"
Expand All @@ -49,7 +49,7 @@
"type": "RSSecondary",
"avg_rtt_ms": 5,
"lastUpdateTime": 0,
"maxWireVersion": 6,
"maxWireVersion": 21,
"lastWrite": {
"lastWriteDate": {
"$numberLong": "1"
Expand All @@ -63,7 +63,7 @@
"type": "RSSecondary",
"avg_rtt_ms": 5,
"lastUpdateTime": 0,
"maxWireVersion": 6,
"maxWireVersion": 21,
"lastWrite": {
"lastWriteDate": {
"$numberLong": "1"
Expand Down
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
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"$numberLong": "125002"
}
},
"maxWireVersion": 6
"maxWireVersion": 21
},
{
"address": "b:27017",
Expand All @@ -25,7 +25,7 @@
"$numberLong": "2"
}
},
"maxWireVersion": 6
"maxWireVersion": 21
},
{
"address": "c:27017",
Expand All @@ -37,7 +37,7 @@
"$numberLong": "1"
}
},
"maxWireVersion": 6
"maxWireVersion": 21
}
]
},
Expand All @@ -56,7 +56,7 @@
"$numberLong": "125002"
}
},
"maxWireVersion": 6
"maxWireVersion": 21
},
{
"address": "b:27017",
Expand All @@ -68,7 +68,7 @@
"$numberLong": "2"
}
},
"maxWireVersion": 6
"maxWireVersion": 21
}
],
"in_latency_window": [
Expand All @@ -82,7 +82,7 @@
"$numberLong": "125002"
}
},
"maxWireVersion": 6
"maxWireVersion": 21
}
]
}
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
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"$numberLong": "125002"
}
},
"maxWireVersion": 6
"maxWireVersion": 21
},
{
"address": "b:27017",
Expand All @@ -25,7 +25,7 @@
"$numberLong": "2"
}
},
"maxWireVersion": 6
"maxWireVersion": 21
},
{
"address": "c:27017",
Expand All @@ -37,7 +37,7 @@
"$numberLong": "1"
}
},
"maxWireVersion": 6
"maxWireVersion": 21
}
]
},
Expand All @@ -56,7 +56,7 @@
"$numberLong": "125002"
}
},
"maxWireVersion": 6
"maxWireVersion": 21
},
{
"address": "b:27017",
Expand All @@ -68,7 +68,7 @@
"$numberLong": "2"
}
},
"maxWireVersion": 6
"maxWireVersion": 21
}
],
"in_latency_window": [
Expand All @@ -82,7 +82,7 @@
"$numberLong": "125002"
}
},
"maxWireVersion": 6
"maxWireVersion": 21
}
]
}
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
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"$numberLong": "125002"
}
},
"maxWireVersion": 6
"maxWireVersion": 21
},
{
"address": "b:27017",
Expand All @@ -25,7 +25,7 @@
"$numberLong": "2"
}
},
"maxWireVersion": 6
"maxWireVersion": 21
},
{
"address": "c:27017",
Expand All @@ -37,7 +37,7 @@
"$numberLong": "1"
}
},
"maxWireVersion": 6
"maxWireVersion": 21
}
]
},
Expand All @@ -56,7 +56,7 @@
"$numberLong": "125002"
}
},
"maxWireVersion": 6
"maxWireVersion": 21
},
{
"address": "b:27017",
Expand All @@ -68,7 +68,7 @@
"$numberLong": "2"
}
},
"maxWireVersion": 6
"maxWireVersion": 21
}
],
"in_latency_window": [
Expand All @@ -82,7 +82,7 @@
"$numberLong": "2"
}
},
"maxWireVersion": 6
"maxWireVersion": 21
}
]
}
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
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{
"address": "c:27017",
"type": "RSSecondary",
"maxWireVersion": 6,
"maxWireVersion": 21,
"avg_rtt_ms": 5,
"lastWrite": {
"lastWriteDate": {
Expand All @@ -35,7 +35,7 @@
{
"address": "c:27017",
"type": "RSSecondary",
"maxWireVersion": 6,
"maxWireVersion": 21,
"avg_rtt_ms": 5,
"lastWrite": {
"lastWriteDate": {
Expand All @@ -48,7 +48,7 @@
{
"address": "c:27017",
"type": "RSSecondary",
"maxWireVersion": 6,
"maxWireVersion": 21,
"avg_rtt_ms": 5,
"lastWrite": {
"lastWriteDate": {
Expand Down
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
Loading