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

Forking while using an AsyncMongoClient should raise a fatal error

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Python Drivers
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      Context

      The async API does not support forking, but does not explicitly error when it encounters a fork. This is misleading to users and risks creating deadlocks, as child processes share their parent process's asyncio loop.

      Definition of done

      A fatal exception should be raised when an AsyncMongoClient detects that it has been forked.

      Pitfalls

      N/A

            Assignee:
            Unassigned Unassigned
            Reporter:
            noah.stapp@mongodb.com Noah Stapp
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None