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

ChangeStream can't handle 'drop' event

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

      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.

       

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

              Created:
              Updated:
              Resolved: