-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Change Streams
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).