[JAVA-540] Create a Java Driver test for ensuring an exception is thrown if a DBCursor in a capped collection gets wrapped over/overwritten by inserts. Created: 15/Mar/12 Updated: 31/Jan/18 Resolved: 31/Jan/18 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Test Coverage |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Minor - P4 |
| Reporter: | Daniel Gottlieb (Inactive) | Assignee: | Unassigned |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Say we're tailing an oplog and have a DBCursor at May 9th, 2012 11:44AM. We keep this cursor alive (without incrementing it) long enough for the oplog to wrap around and overwrite the May 9th, 2012 11:44AM entry. If we call DBCursor.next() it should eventually throw an exception, if not immediately then when the cursor actually sends a getMore request to the server. |