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

ChangeStreamIterable withDocumentClass throws exception because convertResultsCallback looks for resumeToken

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Won't Fix
    • Affects Version/s: 3.6.3
    • Fix Version/s: None
    • Component/s: Query Operations
    • Labels:
      None
    • Environment:
      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

              Assignee:
              ross.lawley Ross Lawley
              Reporter:
              doctorpangloss Benjamin Berman
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: