Uploaded image for project: 'PHP Driver: Library'
  1. PHP Driver: Library
  2. PHPLIB-322

ChangeStream::rewind() should resume after a resumable error

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.3.1
    • Affects Version/s: 1.3.0
    • Component/s: None
    • None

      The ChangeStream iterator's rewind() method does not appear to resume if it encounters a resumable error. It likely needs to adopt the logic found in next().

      Additionally, rewind() should capture the resume token by calling extractResumeToken(). This ensures we can resume from the initial change document (provided we rewound) if there is an error on the very first call to next().

            Assignee:
            katherine.walker@mongodb.com Katherine Walker (Inactive)
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: