Raise an error if an opened MongoClient is used after a fork

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Won't Do
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We already attempt to raise a warning if the application uses the same MongoClient before and after a fork. With session pooling this behavior becomes even more undefined (PYTHON-1660) because the parent and child may end up using the same server session at the same time. We should consider if we want completely restrict this usage by raising an error instead of a warning.

      Such a change would be backwards breaking for apps that are written incorrectly however I think a hard error might be better than undefined behavior.

            Assignee:
            Unassigned
            Reporter:
            Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: