Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-1409

Rewinding cursor should never invoke getMore

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      Rewinding a tailable cursor with an empty first batch results in a getMore command being executed. This is demonstrated for both change streams and basic, tailable cursors in the attached scripts.

      PHPC-1050 originally touched on this issue by ensuring that a getMore was not executed at the time the cursor was constructed; however, it only punted it to the first iteration even on the cursor (be it rewind() or next()).

      This issue is responsible for PHPLIB-451 and the related spec test failure in PHPLIB-416. While PHPLIB-451 can work around the issue on its own by inspecting the firstBatch field in the initial aggregate response, we should still see if this can be addressed in PHPC itself.

            Assignee:
            Unassigned Unassigned
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: