[JAVA-316] in DBTCPConnector.say(), possible race condition that affects getLastError() result Created: 31/Mar/11  Updated: 19/Oct/16  Resolved: 25/Apr/11

Status: Closed
Project: Java Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 2.5.3

Type: Bug Priority: Major - P3
Reporter: Antoine Girbal Assignee: Antoine Girbal
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

the code first puts port back in pool, then creates a WriteResult with the port.
The WriteResult tries to remember the current call id of the port, but port may already have been reused.
If getlasterror is called, it will see result of later call.



 Comments   
Comment by auto [ 31/Mar/11 ]

Author:

{u'login': u'agirbal', u'name': u'agirbal', u'email': u'antoine@10gen.com'}

Message: JAVA-315: several exception cases do not put back the dbport in pool, resulting in forever hanging pool to that server
JAVA-316: in DBTCPConnector.say(), possible race condition that affects getLastError() result
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/143dce3ecbfdcd644de8b129d9db8c275c99017e

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