Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-3720

Reconsider implementation for mongoConnectionException.Generation

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • None
    • None

    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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dmitry.lukyanov@mongodb.com Dmitry Lukyanov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: