[JAVA-4355] Require hello command for connection handshake to use OP_MSG, disallowing OP_QUERY Created: 19/Oct/21  Updated: 28/Oct/23  Resolved: 26/Jan/22

Status: Closed
Project: Java Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 4.3.0

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

Issue Links:
Issue split
Quarter: FY22Q4
Upstream Changes Summary:

DRIVERS-1916:
This ticket does two things:

  1. It clarifies that if the "hello" command is used (as opposed to "isMaster") it must be sent using OP_MSG
  2. Because the previous version of the spec already required that if a versioned API is specified, "hello" must be used, it is made explicit that this also means OP_MSG must be used.

Drivers must ensure that their connection handshake uses both OP_MSG and "hello" if a versioned API is specified.
For an example of what your connection process should look like after this change, take a look at the Python implementation in the handshake spec.


 Description   

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



 Comments   
Comment by Jeffrey Yemin [ 26/Jan/22 ]

This is already the behavior as of the 4.3.0 release.

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