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

ChangeStream can't handle 'drop' event

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.8.1
    • Fix Version/s: 3.8.2
    • Component/s: Change Streams
    • Labels:
      None
    • Environment:
      MongoDB server 4.0.1

      Description

      MongoDB server 4.0.1 sends 'drop' event in change stream.

      But OperationType class can't handle 'drop' event, and throws IllegalArgumentException.

      It should support 'drop' operation type. And I think it should support 'unknown' type for fail safe purpose.

       

      And when the exception occurs in ChangeStreamBatchCursor.convertResults(), other events following 'drop' event (like as 'invalidate') is not handled(dropped), so they are not notified to the application.

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ross.lawley Ross Lawley
              Reporter:
              tmurakam Takuya Murakami
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: