[GODRIVER-2192] Require hello command for connection handshake to use OP_MSG, disallowing OP_QUERY Created: 19/Oct/21  Updated: 27/Jan/22  Resolved: 27/Jan/22

Status: Closed
Project: Go Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.9.0

Type: Improvement Priority: Major - P3
Reporter: PM Bot Assignee: Benji Rewis (Inactive)
Resolution: Done Votes: 0
Labels: size-xsmall
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.

Documentation Changes: Not Needed

 Description   

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



 Comments   
Comment by Githook User [ 27/Jan/22 ]

Author:

{'name': 'Benjamin Rewis', 'email': '32186188+benjirewis@users.noreply.github.com', 'username': 'benjirewis'}

Message: GODRIVER-2120 GODRIVER-2192 Ensure OP_QUERY is only used when necessary (#843)
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/9ae6ccf0bde4e06fb5cbbef5867df4887f4e3dd1

Comment by Benji Rewis (Inactive) [ 26/Jan/22 ]

https://github.com/mongodb/mongo-go-driver/pull/843

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