[CDRIVER-3940] Server Monitor creates isMaster command without API Version flags Created: 30/Mar/21  Updated: 28/Oct/23  Resolved: 05/Apr/21

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.18.0, 1.18.0-alpha

Type: Bug Priority: Major - P3
Reporter: Andreas Braun Assignee: Andreas Braun
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

_server_monitor_awaitable_ismaster constructs its own hello command to send to the server, but does not append Versioned API information. This causes errors when testing against a server with requireApiVersion enabled:

2021/03/30 09:13:56.0028: [20586751]: DEBUG: monitor: [localhost:27017] command or network error occurred: The apiVersion parameter is required, please configure your MongoClient's API version



 Comments   
Comment by Githook User [ 05/Apr/21 ]

Author:

{'name': 'Andreas Braun', 'email': 'alcaeus@users.noreply.github.com', 'username': 'alcaeus'}

Message: CDRIVER-3940 Fix missing versioned API options in server monitor (#770)

  • Rename method to indicate that the full handshake command is returned
  • Rename _mongoc_topology_get_ismaster
  • Add method to expose "hello" command without handshake information
Comment by Andreas Braun [ 30/Mar/21 ]

https://github.com/mongodb/mongo-c-driver/pull/770

Generated at Wed Feb 07 21:19:27 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.