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

A MongoClient configured for auto encryption cannot be re-used after close()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.9
    • Component/s: None
    • Labels:
      None

      Description

      A MongoClient instance can be re-used after being closed. However this does not work when the MongoClient is configured for auto encryption.

      We should either:

      • document this limitation
      • or recreate the auto encryption machinery when a closed client is reopened. Note that this would need to be thread safe.

        Attachments

          Activity

            People

            Assignee:
            shane.harvey Shane Harvey
            Reporter:
            shane.harvey Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: