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

ChangeStream can't handle 'drop' event

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 3.8.2
    • 3.8.1
    • Change Streams
    • None
    • 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

        Activity

          People

            ross@mongodb.com Ross Lawley
            tmurakam Takuya Murakami
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: