-
Type: Improvement
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
This ticket was split from DRIVERS-2033, please see that ticket for a detailed description.
Acceptance Criteria
**
Implementation Requirements
When performing an initial handshake send the hello command instead of the legacy hello command if loadBalanced option is specified. Also send command OP_MSG instead of OP_QUERY.
Testing Requirements
- prepareHandshakeDocument sets the hello parameter to 1 when loadBalanced is true
- prepareHandshakeDocument sets the legacy hello parameter to 1 when serverApi and loadBalanced are not present
- add a unit test for a load-balanced to verify that the first command is sent as OP_MSG
- add a unit test for a not load-balanced to verify that the first command is sent as OP_QUERY
Documentation Requirements
None
Follow Up Requirements
None