[JAVA-2476] Use killCursors command with MongoDB 3.2 and up Created: 22/Mar/17  Updated: 24/Jul/17  Resolved: 23/Mar/17

Status: Closed
Project: Java Driver
Component/s: Query Operations
Affects Version/s: None
Fix Version/s: 3.5.0

Type: Improvement 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

Issue Links:
Depends
is depended on by DRIVERS-363 Replace OP_KILL_CURSORS with killCurs... Closed

 Description   

MongoDB introduced a killCursors command in 3.2 to go along with the find and getMore commands. The Java driver, however, doesn't use it, as there were no ill effects of not using it. However, Atlas free tier handles only the killCursors command and ignores OP_KILL_CURSORS. Given this limitation, and the possibility that the server will ultimately deprecate OP_KILL_CURSORS, the Java driver should use the killCursors command with server versions >= 3.2.



 Comments   
Comment by Githook User [ 23/Mar/17 ]

Author:

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

Message: JAVA-2476: Use killCursors command for server versions >= 3.2
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/ce47d23ff8765f503cc7042366a7db29274c4da2

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