[CSHARP-3720] Reconsider implementation for mongoConnectionException.Generation Created: 28/Jun/21 Updated: 31/Mar/22 |
|
| Status: | Backlog |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Dmitry Lukyanov (Inactive) | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Currently MongoConnectionException contains a Generation field that is created as a workaround to pass a poolGeneration to the exceptionHandling logic. This logic works as expected only when we call error handling on handshake exception. In this case it will always return false. Also, MongoConnectionException is used in a lot of places in the code, so it's not the best way to add a field that will be assigned only in very limited place. So this logic should be reconsidered. |