[CDRIVER-2057] localThresholdMS should default to 15 milliseconds Created: 16/Feb/17  Updated: 07/Mar/17  Resolved: 02/Mar/17

Status: Closed
Project: C Driver
Component/s: libmongoc
Affects Version/s: 1.5.4, 1.6.0
Fix Version/s: 1.5.5, 1.6.1

Type: Bug Priority: Major - P3
Reporter: Jeremy Mikola Assignee: Jeremy Mikola
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to PHPC-917 localThresholdMS should default to 15... Closed
related to PHPC-918 localThresholdMS of zero is not suppo... Closed
is related to CDRIVER-2056 mongoc_uri_get_option_as_int32() does... Closed

 Description   

The server selection spec states that localThresholdMS should default to 15 milliseconds, but MONGOC_TOPOLOGY_LOCAL_THRESHOLD_MS is defined as 15000 (i.e. 15 seconds). In practice, this causes mongoc_topology_description_suitable_servers() to append most every server to the list before random selection.



 Comments   
Comment by Githook User [ 07/Mar/17 ]

Author:

{u'username': u'jmikola', u'name': u'Jeremy Mikola', u'email': u'jmikola@gmail.com'}

Message: PHPC-917: Bump libmongoc and libbson to 1.6.1.

Includes CDRIVER-2057, which fixes the default value for localThresholdMS.
Branch: master
https://github.com/mongodb/mongo-php-driver/commit/42f0b4d8a516d0e818e0f8515588c75c22ac5796

Comment by Githook User [ 07/Mar/17 ]

Author:

{u'username': u'jmikola', u'name': u'Jeremy Mikola', u'email': u'jmikola@gmail.com'}

Message: PHPC-917: Bump libmongoc and libbson to 1.5.5

Includes CDRIVER-2057, which fixes the default value for localThresholdMS.
Branch: master
https://github.com/mongodb/mongo-php-driver/commit/e25091bd75aec762ff0c9c91525cc839494aecca

Comment by Githook User [ 07/Mar/17 ]

Author:

{u'username': u'jmikola', u'name': u'Jeremy Mikola', u'email': u'jmikola@gmail.com'}

Message: PHPC-917: Bump libmongoc and libbson to 1.5.5

Includes CDRIVER-2057, which fixes the default value for localThresholdMS.
Branch: v1.2
https://github.com/mongodb/mongo-php-driver/commit/e25091bd75aec762ff0c9c91525cc839494aecca

Comment by A. Jesse Jiryu Davis [ 02/Mar/17 ]

r1.6: https://github.com/mongodb/mongo-c-driver/commit/7dd7285913e8e3f2a6e461e336d7858cb0d47964

Comment by Githook User [ 02/Mar/17 ]

Author:

{u'username': u'jmikola', u'name': u'Jeremy Mikola', u'email': u'jmikola@gmail.com'}

Message: CDRIVER-2057: localThresholdMS should default to 15 milliseconds

Branch: r1.5
https://github.com/mongodb/mongo-c-driver/commit/bf5e1d3c6b092affc51f5df23b135be8b179dcba

Comment by Githook User [ 24/Feb/17 ]

Author:

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

Message: Merge pull request #423 from jmikola/1.5-cdriver-2057

CDRIVER-2057: localThresholdMS should default to 15 milliseconds
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/86abf4bd7026e358a080c46c25b9d80a739b50fd

Comment by Githook User [ 24/Feb/17 ]

Author:

{u'username': u'jmikola', u'name': u'Jeremy Mikola', u'email': u'jmikola@gmail.com'}

Message: CDRIVER-2057: localThresholdMS should default to 15 milliseconds
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/dd10f2b4c6b4e20ec915235c7c3e8252412b4030

Comment by Jeremy Mikola [ 16/Feb/17 ]

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

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