Skip to content

Commit 2d77dd6

Browse files
committed
PYTHON-3088 [v3.13] Update load balancer tests to support dedicated load balancer port (mongodb#870)
(cherry picked from commit 341d489)
1 parent f5eec45 commit 2d77dd6

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.evergreen/config.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1937,6 +1937,10 @@ axes:
19371937
display_name: "MongoDB latest"
19381938
variables:
19391939
VERSION: "latest"
1940+
- id: "rapid"
1941+
display_name: "MongoDB rapid"
1942+
variables:
1943+
VERSION: "rapid"
19401944

19411945
# Choice of Python runtime version
19421946
- id: python-version
@@ -2636,7 +2640,7 @@ buildvariants:
26362640
- matrix_name: "load-balancer"
26372641
matrix_spec:
26382642
platform: ubuntu-18.04
2639-
mongodb-version: ["5.0", "latest"]
2643+
mongodb-version: ["rapid", "latest"]
26402644
auth-ssl: "*"
26412645
python-version: "*"
26422646
loadbalancer: "*"

pymongo/pool.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -630,8 +630,6 @@ def _hello(self, cluster_time, topology_version, heartbeat_frequency):
630630
auth_ctx = None
631631

632632
doc = self.command("admin", cmd, publish_events=False, exhaust_allowed=awaitable)
633-
if not self.opts.load_balanced:
634-
doc.pop("serviceId", None)
635633
hello = Hello(doc, awaitable=awaitable)
636634
self.is_writable = hello.is_writable
637635
self.max_wire_version = hello.max_wire_version
@@ -676,9 +674,6 @@ def _next_reply(self):
676674
unpacked_docs = reply.unpack_response()
677675
response_doc = unpacked_docs[0]
678676
helpers._check_command_response(response_doc, self.max_wire_version)
679-
# Remove after PYTHON-2712.
680-
if not self.opts.load_balanced:
681-
response_doc.pop("serviceId", None)
682677
return response_doc
683678

684679
def command(

0 commit comments

Comments
 (0)