[SERVER-78232] Change Stream is not working with on-demand materialized views Created: 20/Jun/23  Updated: 20/Jun/23  Resolved: 20/Jun/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 5.0.7
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Kos Chaus Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-78231 Change Stream is not working with on-... Needs Scheduling
Operating System: ALL
Steps To Reproduce:
  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

Participants:

 Description   

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.

 


Generated at Thu Feb 08 06:37:47 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.