-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
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.
- related to
-
JAVA-2966 Support dropDatabase and rename operation types for changestreams
- Closed
-
SERVER-35028 Add change stream notifications for collection drop and rename
- Closed
-
SERVER-35029 Add change stream notification for database drop
- Closed