[JAVA-2065] Using bulk write API, in some cases two sockets will be used instead of one Created: 14/Dec/15  Updated: 16/Feb/18  Resolved: 21/Dec/15

Status: Closed
Project: Java Driver
Component/s: Write Operations
Affects Version/s: 2.14.0
Fix Version/s: 2.14.1

Type: Bug Priority: Minor - P4
Reporter: Jeffrey Yemin Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related

 Description   

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.



 Comments   
Comment by Githook User [ 16/Feb/18 ]

Author:

{'email': 'jeff.yemin@10gen.com', 'name': 'Jeff Yemin', 'username': 'jyemin'}

Message: JAVA-2065: Use same DBPort instance for bulk write requests that use OP_INSERT/UPDATE/DELETE wire protocol messages, whether because the write concern is unacknowledged or because the server version is <= 2.4.
Branch: 2.14.x
https://github.com/mongodb/mongo-java-driver/commit/8fbdc19585e9d79d2cfbf4c532684b7540c4b296

Comment by Jeffrey Yemin [ 13/Jan/16 ]

Closed for 2.14.1 release

Comment by Githook User [ 21/Dec/15 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-2065: Use same DBPort instance for bulk write requests that use OP_INSERT/UPDATE/DELETE wire protocol messages, whether because the write concern is unacknowledged or because the server version is <= 2.4.
Branch: 2.14.x
https://github.com/mongodb/mongo-java-driver/commit/8fbdc19585e9d79d2cfbf4c532684b7540c4b296

Comment by Githook User [ 21/Dec/15 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-2065: Use same DBPort instance for bulk write requests that use OP_INSERT/UPDATE/DELETE wire protocol messages, whether because the write concern is unacknowledged or because the server version is <= 2.4.
Branch: 2.x
https://github.com/mongodb/mongo-java-driver/commit/94ada7a7cb2070d6315cab72542591142704f359

Generated at Thu Feb 08 08:56:14 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.