Reconsider implementation for mongoConnectionException.Generation

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Unassigned
            Reporter:
            Dmitry Lukyanov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: