[JAVA-402] Only 1 batch is returned if batchSize on cursor is set and results are sorted Created: 27/Jul/11 Updated: 19/Oct/16 Resolved: 24/Oct/11 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | None |
| Affects Version/s: | 2.6.3 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | sam owen | Assignee: | Antoine Girbal |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Mongo 1.8.2 |
||
| Description |
|
import com.mongodb.*; public class MongoDriverSortAndBatchSizeTest { |
| Comments |
| Comment by alex giamas [ 12/Jan/12 ] |
|
That's great news Scott, thanks! |
| Comment by Scott Hernandez (Inactive) [ 12/Jan/12 ] |
|
Let me linked the server issue. 2.1.x is the current dev release. I expect a fix in 2.2.0 which is the next production release. |
| Comment by alex giamas [ 12/Jan/12 ] |
|
expected fix version? 2.2.1 maybe? |
| Comment by Scott Hernandez (Inactive) [ 12/Jan/12 ] |
|
This is still a server issue, and not a driver one. |
| Comment by alex giamas [ 12/Jan/12 ] |
|
Looks like this hasn't been fixed and should be reopened. We bumped into it again with DB 2.0.2 and Java driver 2.7.2. Looks like we are in the same boat as this guy: i.e. We are using an index for the query but it's doing scanAndOrder:true, with sort() we only get the first batch of results, without sort we are fine. |
| Comment by Scott Hernandez (Inactive) [ 24/Oct/11 ] |
|
This was a server problem and has been fixed. |