[CDRIVER-2552] Race condition causes assert failure after secondary removed from replica set Created: 15/Mar/18 Updated: 28/Oct/23 Resolved: 12/Apr/18 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | libmongoc, replset |
| Affects Version/s: | 1.5.0 |
| Fix Version/s: | 1.10.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | A. Jesse Jiryu Davis | Assignee: | A. Jesse Jiryu Davis |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Case: | (copied to CRM) | ||||
| Description |
|
I made a mistake implementing 1. Driver discovers a replica set with a primary A and at least one secondary B The point of the assert was to validate my understanding of the "retired" field. I thought it was always cleared after a scan, I didn't realize the side effect of The solution is probably, at the beginning of each scan, to remove any nodes that have been retired by handshakes. The assert can remain in place. In addition, there had been a bug not only when This fix will not be backported. |
| Comments |
| Comment by Githook User [ 24/Mar/18 ] |
|
Author: {'email': 'jesse@mongodb.com', 'name': 'A. Jesse Jiryu Davis', 'username': 'ajdavis'}Message: Simpler solution: don't risk retiring a scanner node or creating an async_cmd_t Also factor the steps required to start a scan into a new function, |
| Comment by Githook User [ 24/Mar/18 ] |
|
Author: {'email': 'jesse@mongodb.com', 'name': 'A. Jesse Jiryu Davis', 'username': 'ajdavis'}Message: |
| Comment by Githook User [ 21/Mar/18 ] |
|
Author: {'email': 'jesse@mongodb.com', 'name': 'A. Jesse Jiryu Davis', 'username': 'ajdavis'}Message: |
| Comment by Githook User [ 21/Mar/18 ] |
|
Author: {'email': 'jesse@mongodb.com', 'name': 'A. Jesse Jiryu Davis', 'username': 'ajdavis'}Message: |
| Comment by Githook User [ 21/Mar/18 ] |
|
Author: {'email': 'jesse@mongodb.com', 'name': 'A. Jesse Jiryu Davis', 'username': 'ajdavis'}Message: |
| Comment by Githook User [ 19/Mar/18 ] |
|
Author: {'email': 'jesse@mongodb.com', 'name': 'A. Jesse Jiryu Davis', 'username': 'ajdavis'}Message: |