[CDRIVER-4275] Update load balancer tests to support dedicated load balancer port Created: 31/Jan/22  Updated: 28/Oct/23  Resolved: 09/Dec/22

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.24.0

Type: Improvement Priority: Major - P3
Reporter: PM Bot Assignee: Kevin Albertson
Resolution: Fixed Votes: 0
Labels: failing-on-waterfall
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Gantt Dependency
has to be done before CDRIVER-4387 Support for Deploying MongoDB behind ... Closed
Issue split
split from DRIVERS-1983 Update load balancer tests to support... Implementing
Related
related to CDRIVER-4302 Update initial DNS seedlist discovery... Backlog
Server Compat: 5.0, 5.2
Quarter: FY23Q1
Upstream Changes Summary:

DRIVERS-1983:
Implementation notes for drivers:

  • Drivers must update their load balancer test runs in Evergreen to run on "latest", and then may choose to use 5.2.0 GA and higher for the runs when available.
  • Drivers must remove the use of service ID mocking (e.g. FAKE_MONGODB_SERVICE_ID) in their code.
  • Drivers must set the LOAD_BALANCER environment variable to "true" in their load balancer test runs and pass the environment variable when invoking run-orchestration.sh.
  • Drivers may need to make changes to their test runners if they had direct connections to the mongos in their tests with the "loadBalanced=true" URI option set. (Such as utility clients - they must go through the load balancer now in these cases.)

See: https://github.com/mongodb-labs/drivers-evergreen-tools/pull/183
See: https://github.com/mongodb/node-mongodb-native/pull/3089


 Description   

This ticket was split from DRIVERS-1983, please see that ticket for a detailed description.



 Comments   
Comment by Githook User [ 09/Dec/22 ]

Author:

{'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}

Message: CDRIVER-4275 and CDRIVER-4275 (#1158)

  • set loadBalanced=true in URI if testing with load balancer
  • Update integration-tests.sh and orchestration configs
  • add LOAD_BALANCER to 'bootstrap mongo-orchestration' function
  • use /tmp/orchestration-home path

This matches expectation of integration-tests.sh.

  • remove mongoc_global_mock_service_id

This was only needed when MongoDB servers did not return a serviceId in the hello response.

  • update loadBalanced DNS tests

Tests were updated in mongodb/specifications commit: 5d1b42a05017ba27ffdbe6fd068a45e93e5b68c5
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/eea8bb741fa0b4f61bf50142ce6b608f4a265ecc

Generated at Wed Feb 07 21:20:28 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.