Just after creating the mongo client, the mongo driver may lose a single operation

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Critical - P2
    • 3.2.0
    • Affects Version/s: 3.1.0
    • Component/s: Async
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When multiple operations are executed on an async mongo client just after it has been created, a single operation may be lost, and no callback is fired or timeout occurs. This may lead to execution timeout errors in production code and may affect all async mongo users that use the client directly after initialisation.

      The attached example attempts to demonstrate the behavior. When the commented sleep() is uncommented, the example should always succeed. Otherwise, the example should fail most of the time with a "1 remaining operations" message. Note that sometimes, this example succeeds, please run it multiple times when the problem is not immediately present.

            Assignee:
            Jeffrey Yemin
            Reporter:
            Peter Hendriks
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: