Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2828

ChangeStreamIterable withDocumentClass throws exception because convertResultsCallback looks for resumeToken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Won't Fix
    • 3.6.3
    • None
    • Query Operations
    • None
    • macOS 10.13.4
      mongodb 3.6.3

    Description

      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).

      Attachments

        Issue Links

          Activity

            People

              ross@mongodb.com Ross Lawley
              doctorpangloss Benjamin Berman
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: