[CDRIVER-4265] Require hello command + OP_MSG when 'loadBalanced=True' Created: 20/Jan/22  Updated: 28/Oct/23  Resolved: 03/May/23

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.24.0

Type: Task Priority: Unknown
Reporter: PM Bot Assignee: Ezra Chung
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by PHPC-2035 Require hello command + OP_MSG when '... Closed
Issue split
Related
related to CDRIVER-4193 Require hello command for connection ... Closed
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.


 Description   

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



 Comments   
Comment by Githook User [ 03/May/23 ]

Author:

{'name': 'Ezra Chung', 'email': '88335979+eramongodb@users.noreply.github.com', 'username': 'eramongodb'}

Message: CDRIVER-4193 Ensure OP_MSG for handshakes and fix RPC op_egress counters (#1256)

  • Move SHM count function into mongoc-counters-private.h
  • Declare test_framework_has_compressors in test-libmongoc.h
  • Allow /counters/op_msg and /counters/op_compressed with auth
  • Add _mongoc_rpc_op_egress_inc
  • CDRIVER-4193 RTT thread should also use hello if serverApi is given
  • Do not increment RPC op_egress counters in mock server
  • Add /counters/rpc/op_egress tests
  • CDRIVER-4622 RPC op_egress increment: mongoc_async_cmd_new -> mongoc_async_cmd_phase_send
  • Add mongoc_<object>_uses_loadbalanced
  • CDRIVER-4265 Use OP_MSG for handshakes when loadBalanced=true
Generated at Wed Feb 07 21:20:26 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.