[CDRIVER-588] Clients don't reconnect after primary step down Created: 23/Mar/15  Updated: 27/Apr/15  Resolved: 24/Mar/15

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

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

Issue Links:
Depends
Related

 Description   

mongoc_cluster_t's have a try_sendv and a sendv method to actually write bytes for commands. For some reason we use try_sendv after the cluster is born, so we don't reconnect if select fails.

That doesn't make any sense. We should just use regular cluster_sendv() in all cases.



 Comments   
Comment by Githook User [ 24/Mar/15 ]

Author:

{u'username': u'hanumantmk', u'name': u'Jason Carey (hanumantmk)', u'email': u'jcarey@argv.me'}

Message: CDRIVER-588 avoid cluster_try_sendv

Avoid the use of cluster_try_sendv for healthy and unhealthy clusters.
It just needlessly avoids reconnects and persists the same errors.
Branch: 1.2.0-dev
https://github.com/mongodb/mongo-c-driver/commit/dce728c6eed542079fa9a882146196d0d9a0a8fc

Comment by Githook User [ 24/Mar/15 ]

Author:

{u'username': u'hanumantmk', u'name': u'Jason Carey (hanumantmk)', u'email': u'jcarey@argv.me'}

Message: CDRIVER-588 avoid cluster_try_sendv

Avoid the use of cluster_try_sendv for healthy and unhealthy clusters.
It just needlessly avoids reconnects and persists the same errors.
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/dce728c6eed542079fa9a882146196d0d9a0a8fc

Comment by Hannes Magnusson [ 23/Mar/15 ]

Seems related to CDRIVER-578

Comment by Mira Carey [ 23/Mar/15 ]

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

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