[SERVER-80821] Use name of the watched collection as the namespace in the query shape Created: 06/Sep/23  Updated: 29/Oct/23  Resolved: 12/Sep/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.2.0-rc0

Type: Bug Priority: Major - P3
Reporter: Charlie Swanson Assignee: Alyssa Clark
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-85075 Tracking: Milestone 2 Closed
Assigned Teams:
Query Optimization
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: QI 2023-09-18
Participants:

 Description   

Right now it looks like the namespace is coming out as "oplog.rs" which isn't necessarily wrong, but doesn't feel as useful as displaying the name the command was run against - eg. "foo" in "db.foo.watch()".



 Comments   
Comment by Githook User [ 12/Sep/23 ]

Author:

{'name': 'Alyssa Wagenmaker', 'email': 'alyssa.wagenmaker@mongodb.com', 'username': 'awagenmaker'}

Message: SERVER-80821 Use original request namespace in query shape
Fix the query shape for change streams so that the watched collection is reported rather than oplog.rs.
Branch: master
https://github.com/mongodb/mongo/commit/7f42924bf009ec67df3b2d8e32d56bb387037c27

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