Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-4126

ChangeStreams should resume when used in iterator mode

    • 3
    • Not Needed

      The async iterator API in the Node Driver does not resume change stream errors properly.

      • tryNext() works by performing `next` and then adding the resulting document back into the cursor.  There is currently no retry logic for the tryNext method.
      • next() does resume correctly, but it calls tryNext() immediately after a successful resume.  So consecutive resumes are not supported for the iterator based API but are required by the spec (see this spec test).

       

       

            Assignee:
            bailey.pearson@mongodb.com Bailey Pearson
            Reporter:
            bailey.pearson@mongodb.com Bailey Pearson
            Durran Jordan
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: