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

ChangeStreamIterable withDocumentClass throws exception because convertResultsCallback looks for resumeToken

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

      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@mongodb.com Ross Lawley
            Reporter:
            doctorpangloss Benjamin Berman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: