ChangeStreamIterable withDocumentClass throws exception because convertResultsCallback looks for resumeToken

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: 3.6.3
    • Component/s: Query Operations
    • None
    • Environment:
      macOS 10.13.4
      mongodb 3.6.3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      1. Call `watch` with a `$replaceRoot` pipeline and `withDocumentClass` and pass a class with a registered codec.
      2. Observe that a resume token cannot be found in the replaced document, even when the end user does not want resume token functionality.

      The core issue is in AsyncChangeStreamBatchCursor convertResultsCallback. It should not throw an exception if a resume token cannot be found (very surprising and undocumented).

            Assignee:
            Ross Lawley
            Reporter:
            Benjamin Berman
            None
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: