Forking while using an AsyncMongoClient should raise a fatal error

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Duplicate
    • Priority: 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
              Reporter:
              Noah Stapp
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: