[CDRIVER-810] mongoc_cluster_disconnect_node() doesn't disconnect it in single threaded mode Created: 19/Aug/15 Updated: 19/Oct/16 Resolved: 16/Sep/15 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | None |
| Affects Version/s: | 1.2-beta0 |
| Fix Version/s: | 1.2-rc0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Hannes Magnusson | Assignee: | Hannes Magnusson |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Description |
|
When mongoc_cluster_try_recv() fails for example with a timeout, the node is disconnected using mongoc_cluster_disconnect_node().
In the case where the caller calls mongoc_topology_invalidate_server() works out in the end, but that is not always the case (like destroying cursor in exhaust mode, or writev_full() failure) |
| Comments |
| Comment by Githook User [ 11/Jan/16 ] |
|
Author: {u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}Message: Even in single threaded mode |
| Comment by Githook User [ 26/Oct/15 ] |
|
Author: {u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}Message: Even in single threaded mode |
| Comment by Githook User [ 16/Sep/15 ] |
|
Author: {u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}Message: Even in single threaded mode |
| Comment by A. Jesse Jiryu Davis [ 25/Aug/15 ] |
|
Even if it does call mongoc_topology_invalidate_server, then there's no immediate call to mongoc_topology_reconcile, right? So the cluster node isn't destroyed until the next scan, I believe, which is wrong. |