[CDRIVER-689] Detect incompatible wire versions Created: 26/May/15  Updated: 08/Sep/17  Resolved: 10/Aug/17

Status: Closed
Project: C Driver
Component/s: libmongoc
Affects Version/s: 1.2.0
Fix Version/s: 1.8.0

Type: New Feature Priority: Minor - P4
Reporter: A. Jesse Jiryu Davis Assignee: A. Jesse Jiryu Davis
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to CDRIVER-438 Implement Server Discovery And Monito... Closed
is related to CDRIVER-2270 _mongoc_topology_description_check_co... Closed
is related to CDRIVER-1005 Improve wire version checks Backlog

 Description   

topology->compatible is never set "false", even if a server reports its minWireVersion as greater than the driver's MAX_WIRE_VERSION of 3.

test_wire_version () would've caught this except it was disabled by mistake.

Required by the Server Discovery And Monitoring Spec, but since the server hasn't begun to raise its minWireVersion yet, it will be a long time before this is a real bug.



 Comments   
Comment by Githook User [ 11/Aug/17 ]

Author:

{'name': 'A. Jesse Jiryu Davis', 'username': 'ajdavis', 'email': 'jesse@mongodb.com'}

Message: CDRIVER-689 detect incompatible wire versions
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/6b908ace8d8efc80c7b973df4a988c034618ea84

Comment by Githook User [ 09/Aug/16 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}

Message: Remove duplicated todo for CDRIVER-689
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/b1a5d8f765278bc23e3de9f4134cf99563204ffc

Comment by A. Jesse Jiryu Davis [ 15/Aug/15 ]

Remove this TODO:

https://github.com/mongodb/mongo-c-driver/blob/068e0adb9b34c5dda54508aa63c08fc97a317b14/src/mongoc/mongoc-topology-description.c#L437-437

Comment by Githook User [ 02/Jun/15 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: CDRIVER-689 test wire version range with mock_server2
Branch: 1.2.0-dev
https://github.com/mongodb/mongo-c-driver/commit/9ab31f5ba13d6ae34d4f7b651bb9a015a4769ec4

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