[SERVER-31313] Prohibit creating a view with $changeStream Created: 28/Sep/17  Updated: 30/Oct/23  Resolved: 10/Oct/17

Status: Closed
Project: Core Server
Component/s: Querying, Replication
Affects Version/s: None
Fix Version/s: 3.6.0-rc0

Type: Bug Priority: Major - P3
Reporter: Kyle Suarez Assignee: Bernard Gorman
Resolution: Fixed Votes: 0
Labels: read-only-views
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Query 2017-10-23
Participants:

 Description   

You should not be able to create a view with $changeStream.

replSet:PRIMARY> db.createView("view", "coll", [{$changeStream: {}}])
{
        "ok" : 1,
        "operationTime" : Timestamp(1506631823, 2),
        "$clusterTime" : {
                "clusterTime" : Timestamp(1506631823, 2),
                "signature" : {
                        "hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
                        "keyId" : NumberLong(0)
                }
        }
}



 Comments   
Comment by Githook User [ 10/Oct/17 ]

Author:

{'email': 'bernard.gorman@gmail.com', 'name': 'Bernard Gorman', 'username': 'gormanb'}

Message: SERVER-31313 Prohibit creating a view with $changeStream
Branch: master
https://github.com/mongodb/mongo/commit/9c3da7fb167fdcc2326abfcef7ee2320463b6712

Generated at Thu Feb 08 04:26:38 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.