[JAVA-4463] Update load balancer tests to support dedicated load balancer port Created: 31/Jan/22  Updated: 28/Oct/23  Resolved: 07/Feb/22

Status: Closed
Project: Java Driver
Component/s: Internal, Test Runner
Affects Version/s: None
Fix Version/s: 4.4.2

Type: Improvement Priority: Major - P3
Reporter: PM Bot Assignee: Jeffrey Yemin
Resolution: Fixed Votes: 0
Labels: QP-priority
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Issue split
split from DRIVERS-1983 Update load balancer tests to support... Implementing
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

Documentation Changes: Not Needed

 Description   

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



 Comments   
Comment by Githook User [ 07/Feb/22 ]

Author:

{'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}

Message: Stop testing load balancer support against 5.0

JAVA-4463
Branch: 4.4.x
https://github.com/mongodb/mongo-java-driver/commit/835100aabe173ebb1fde9e32e4eed7d911b9a881

Comment by Githook User [ 07/Feb/22 ]

Author:

{'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}

Message: Remove serviceId hack for load balancer testing (#868)

JAVA-4463
Branch: 4.4.x
https://github.com/mongodb/mongo-java-driver/commit/41f304bd84a6b1d3fb5eb08c4baba80f68b834ac

Comment by Githook User [ 07/Feb/22 ]

Author:

{'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}

Message: Stop testing load balancer support against 5.0

JAVA-4463
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/a9a15b4b5ec4d3dbb900e97c3eee7b5572482a2e

Comment by Githook User [ 07/Feb/22 ]

Author:

{'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}

Message: Remove serviceId hack for load balancer testing (#868)

JAVA-4463
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/8854c2cfba12ccc607ccb4c27066dce43b70d58b

Generated at Thu Feb 08 09:02:08 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.