Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-78231

Change Stream is not working with on-demand materialized views

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 5.0.7
    • Component/s: None
    • None
    • Query Execution
    • ALL
    • Hide
      1. Create collection C1
      2. Create the on-demand materialized view MV1 on the C1 with all matched
      3. Watch MV1
      4. Insert something in C1
      5.  

      Expected:

      The change in MV1 is caught by the watcher

      Actual:

      The change in MV1 is NOT caught by the watcher

      Show
      Create collection C1 Create the on-demand materialized view MV1 on the C1 with all matched Watch MV1 Insert something in C1   Expected : The change in MV1 is caught by the watcher Actual : The change in MV1 is NOT caught by the watcher

      The same code works with a regular Mongo collection but doesn't catch any events happening to the on-demand materialized view.

       

      I found the test which checks that the Change Stream is not supported for normal views.

      However, I didn't find any limitations/restrictions to using Change Streams with on-demand materialized views.

       

            Assignee:
            kateryna.kamenieva@mongodb.com Katya Kamenieva
            Reporter:
            k.chaus@efg.gg Kos Chaus
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: