[CDRIVER-789] segfault in test_rs_seeds_connect Created: 10/Aug/15 Updated: 19/Oct/16 Resolved: 01/Sep/15 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | libmongoc |
| Affects Version/s: | 1.2-beta0 |
| Fix Version/s: | 1.2-beta1 |
| Type: | Bug | Priority: | Critical - P2 |
| 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 | ||
| Description |
|
test_rs_seeds_connect/reconnect and test_mongos_seeds_connect/reconnect, single and pooled versions, all crash with a backtrace like:
When the server hangs up on an ismaster call, it seems that mongoc_stream_failed is called with a stream that's uninitialized or already destroyed. |
| Comments |
| Comment by Githook User [ 11/Jan/16 ] |
|
Author: {u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}Message: |
| Comment by Githook User [ 11/Jan/16 ] |
|
Author: {u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}Message: If the scanner knows about A, a primary, and B, a secondary:
The solution is to not destroy removed nodes in mongoc_topology_reconcile, but |
| Comment by Githook User [ 11/Jan/16 ] |
|
Author: {u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}Message: |
| Comment by Githook User [ 01/Sep/15 ] |
|
Author: {u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}Message: |
| Comment by Githook User [ 01/Sep/15 ] |
|
Author: {u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}Message: If the scanner knows about A, a primary, and B, a secondary:
The solution is to not destroy removed nodes in mongoc_topology_reconcile, but |
| Comment by Githook User [ 01/Sep/15 ] |
|
Author: {u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}Message: |
| Comment by A. Jesse Jiryu Davis [ 12/Aug/15 ] |
|
If the scanner knows about A, a primary, and B, a secondary:
The solution is to not destroy removed nodes in mongoc_topology_reconcile, but close their streams, and mark them "retired" for the remainder of the scan. At the end of the scan destroy retired nodes. |
| Comment by Githook User [ 10/Aug/15 ] |
|
Author: {u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}Message: |
| Comment by Githook User [ 10/Aug/15 ] |
|
Author: {u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}Message: forward-port Discovered |