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

Using bulk write API, in some cases two sockets will be used instead of one

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.14.1
    • Affects Version/s: 2.14.0
    • Component/s: Write Operations
    • None

      Using DBCollection.initializeOrderedBulkOperation or DBCollection.initializeUnorderedBulkOperation and either

      • server version is <= 2.4
      • WriteConcern is unacknowledged

      the implementation checks out two sockets from the pool, one to check the server version and the second to send the legacy opcode message (OP_INSERT/UPDATE/DELETE).

      The same socket should be used for both.

            Assignee:
            Unassigned Unassigned
            Reporter:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: