[CDRIVER-3529] Do not mark server as Unknown during topology scan until after retry has failed Created: 09/Feb/20 Updated: 27/Oct/23 Resolved: 16/Jun/20 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | libmongoc |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Kevin Albertson | Assignee: | Unassigned |
| Resolution: | Gone away | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
libmongoc does will retry, but it marks the server description as Unknown immediately upon network error here. It should wait until after the retry, otherwise other threads will observe the unknown server description before the retry completes and could fail to select that server. |
| Comments |
| Comment by Kevin Albertson [ 16/Jun/20 ] | |||||
|
The specified behavior has changed. The new server monitoring spec now says:
We are supposed to mark Unknown immediately now. | |||||
| Comment by Kevin Albertson [ 07/May/20 ] | |||||
|
|