Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-4137

Return originating server on all server exceptions

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      Context

      DRIVERS-2170

      Server Exceptions do not supply the originating server when thrown. In order to fulfill the new requirement on DRIVERS-2170 and PYTHON-4017, Implement an extension to _format_detailed_error for all located server exceptions and ensure the originating server address is provided.

      In the case where that information cannot be found, we can leave it as `None`.   

      How to find Server Exceptions – OperationFailure subclasses are the only ones we need to check for.

      Definition of done

      All aforementioned defined Server exceptions provide the originating server address when exception is thrown.

      Pitfalls

      • OperationFailure is not an exhaustive enough classification
      • Implementation costs could increase significantly when passing around the proper address for where we want to raise the exception. 

            Assignee:
            steve.silvester@mongodb.com Steve Silvester
            Reporter:
            jib.adegunloye@mongodb.com Jib Adegunloye
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: