[CDRIVER-2484] Retry logic Created: 01/Feb/18 Updated: 27/Oct/23 Resolved: 01/Mar/18 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | libmongoc |
| Affects Version/s: | 1.9.2 |
| Fix Version/s: | 1.10.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Kevin Albertson | Assignee: | Kevin Albertson |
| Resolution: | Works as Designed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Epic Link: | Post-3.6 cleanup | ||||||||
| Description |
|
The attempt to retry connection in our event loop here looks like it should be tweaked. If acmd->state is MONGOC_ASYNC_CMD_ERROR_STATE we won't attempt to retry. The state may need to be reset to MONGOC_ASYNC_CMD_SEND to retry. Also we may need to check the serverselectionretryonce option. |
| Comments |
| Comment by Kevin Albertson [ 01/Mar/18 ] |
|
I misinterpreted this code. I think this works as designed. |
| Comment by A. Jesse Jiryu Davis [ 08/Feb/18 ] |
|
I just noticed this code, make sure you take into account: |