[SERVER-80792] Timeseries inserts are always logged with the bucket namespace for requests sent from mongos Created: 06/Sep/23  Updated: 11/Dec/23  Resolved: 11/Dec/23

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

Type: Bug Priority: Major - P3
Reporter: Lingzhi Deng Assignee: Yuhong Zhang
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Storage Execution
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2023-11-27, Execution Team 2023-12-11, Execution Team 2023-12-25
Participants:

 Description   

For update and delete, we have logic to translate the bucket namespace (e.g. sent from mongos) back to the view namespace when we set up the CurOp. But for insert, it looks like we always use the namespace from the received request. And I think this means that for writes sent from mongos to the shards, they will always be logged with the bucket namespace. I am not sure what's the desired behavior here.

This test confirms this mismatching behavior.



 Comments   
Comment by Githook User [ 11/Dec/23 ]

Author:

{'name': 'Yuhong Zhang', 'email': 'yuhong.zhang@mongodb.com', 'username': 'YuhongZhang98'}

Message: SERVER-80792 Use view namespace for CurOp for time-series inserts

GitOrigin-RevId: a294729af45ccc7880fdf3d74449aa6183fcd90d
Branch: master
https://github.com/mongodb/mongo/commit/328655c7986ab9eb85ec12fec78a4db50c21a826

Comment by Yuhong Zhang [ 28/Sep/23 ]

It seems like we would want to translate the namespace to the view namespace for time-series inserts from mongos as well.

Comment by Gregory Noma [ 12/Sep/23 ]

CC yuhong.zhang@mongodb.com

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