Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2034

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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • 3.2.0
    • Affects Version/s: 3.1.0
    • Component/s: Async
    • 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:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            peterhendriks Peter Hendriks
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: