[JAVA-4447] Require hello command + OP_MSG when in load balanced mode Created: 20/Jan/22  Updated: 28/Oct/23  Resolved: 14/Feb/22

Status: Closed
Project: Java Driver
Component/s: Connection Management
Affects Version/s: None
Fix Version/s: 4.6.0

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

Issue Links:
Issue split
Upstream Changes Summary:

DRIVERS-2033:
This ticket is an add-on to DRIVERS-1916. This ticket similarly specifies drivers must ensure that if load balancing mode is enabled, both "hello" and OP_MSG should be used for the connection handshake.
For an example of what your connection process should look like after this change, take a look at the Python pseudocode implementation in the handshake spec.

Backwards Compatibility: Fully Compatible
Documentation Changes: Not Needed

 Description   

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



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

Author:

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

Message: Fix tests that were broken as a result of the OP_MSG for LB mode change

JAVA-4447
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/44cf9a4979b69f20d30f5eb80b58356f205cdf5c

Comment by Githook User [ 14/Feb/22 ]

Author:

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

Message: Use OP_MSG when connecting to load balancer (#877)

JAVA-4447
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/e8fed0202dbec7a8a695744f8fff36973cdb0b9e

Comment by Githook User [ 14/Feb/22 ]

Author:

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

Message: Make ClusterConnectionMode required in CommandMessage (#874)

JAVA-4447
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/1939094fbe6fa2afb05d81c377e102a82b7d7db6

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