[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:
Related
related to CDRIVER-610 Client should retry every .5 sec unti... Closed
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:

https://github.com/mongodb/mongo-c-driver/blob/0b7e8d8eb1297045a28c050514c7dde9c99d84e9/src/mongoc/mongoc-topology.c#L176

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