[JAVA-1994] Driver should use already-checked out AsyncConnection to kill a cursor. Created: 01/Oct/15  Updated: 07/Oct/15  Resolved: 02/Oct/15

Status: Closed
Project: Java Driver
Component/s: Async, Query Operations
Affects Version/s: None
Fix Version/s: 3.1.0

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


 Description   

The asynchronous cursor implementation checks out a new connection from the pool in order to send a kill cursor message. But that's unnecessary, because in most cases it already has a connection checked out, either from the initial query or a subsequent get-more. In those cases, it should use the connection that's already available rather than check out a new one.



 Comments   
Comment by Jeffrey Yemin [ 07/Oct/15 ]

Released in 3.1.0

Comment by Githook User [ 02/Oct/15 ]

Author:

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

Message: JAVA-1994: Use already-retained AsyncConnection to asynchronously kill cursor, instead of checking out a new one while the existing one has not yet been released.
This avoids unnecessary pressure on the connection pool.
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/8a3c72d8fc174593868a6f87c35e78f3dcfd91c9

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