-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 1.1.2
-
Component/s: None
-
None
This issue has been re-purposed to create regression tests for tailable cursor iteration.
Original description:
While attempting to implement a regression test for
PHPLIB-180that iterates on a tailable cursor, I ran into a brick wall. We obviously cannot use foreach for such iteration, as rewinding is not permitted. Wrapping the cursor with IteratorIterator to get direct access to next(), valid(), and current() methods (essentially an API for hasNext() and getNext()) also did not seem to work correctly (and would be a convoluted solution even if it did immediately work).
- is depended on by
-
PHPC-839 Add option maxAwaitTimeMS on getMore commands
- Closed
-
PHPC-962 Document example of tailable cursor iteration
- Closed
-
PHPLIB-267 Document example of tailable cursor iteration
- Closed
- is related to
-
CDRIVER-1530 Tailable cursor only works with MONGOC_QUERY_AWAIT_DATA
- Closed
-
PHPLIB-180 Fix merging of cursorType, comment, and maxTimeMS options for Find operation
- Closed
- related to
-
PHPC-1056 Test that killCursors really succeeds
- Closed