[JAVA-1946] If batch size is set to 1, send nToReturn of 2 Created: 01/Sep/15  Updated: 25/Nov/15  Resolved: 25/Nov/15

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

Type: Improvement Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: Unassigned
Resolution: Won't Fix Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to DRIVERS-205 Specify that a batch size of 1 is tra... Closed

 Description   

The server special cases nToReturn of 1 to close the cursor, but if the user sets a batch size of 1, the intention is not to close the cursor (a limit of 1 would be used instead).

So the driver should set nToReturn of 2 when batch size is set to 1.



 Comments   
Comment by Jeffrey Yemin [ 25/Nov/15 ]

As per DRIVERS-205, closing as Won't Fix.

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