[SERVER-80146] Support findAndModify() on time-series buckets collection Created: 16/Aug/23  Updated: 29/Oct/23  Resolved: 08/Sep/23

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

Type: Task Priority: Major - P3
Reporter: Yoon Soo Kim Assignee: Yuhong Zhang
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
is related to SERVER-80190 Differentiate buckets collection and ... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v7.1
Sprint: Execution NAMR Team 2023-09-04, QI 2023-08-21, Execution NAMR Team 2023-09-18
Participants:

 Description   

This works in 6.0 and so this is a regression.

repro

db.system.buckets.ts.find().pretty();
{
	"_id" : ObjectId("64dbfc68c6d9d3ff812b93bf"),
	"control" : {
		"version" : 1,
		"min" : {
			"_id" : ObjectId("64dbfca0aa174f07b8426a52"),
			"time" : ISODate("2023-08-15T22:30:00Z"),
			"f" : 3
		},
		"max" : {
			"_id" : ObjectId("64dbfca0aa174f07b8426a52"),
			"time" : ISODate("2023-08-15T22:30:56.812Z"),
			"f" : 3
		}
	},
	"meta" : 3,
	"data" : {
		"f" : {
			"0" : 3
		},
		"time" : {
			"0" : ISODate("2023-08-15T22:30:56.812Z")
		},
		"_id" : {
			"0" : ObjectId("64dbfca0aa174f07b8426a52")
		}
	}
}
> db.runCommand({findAndModify: "system.buckets.ts", query: {_id: ObjectId("64dbfc68c6d9d3ff812b93bf")}, remove: true});
{ "lastErrorObject" : { "n" : 0 }, "value" : null, "ok" : 1 }



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

Author:

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

Message: SERVER-80146 Differentiate buckets collection and time-series collection for findAndModify

Co-authored-by: Yoonsoo Kim <yoonsoo.kim@mongodb.com>
Branch: master
https://github.com/mongodb/mongo/commit/4f1565fbe963f4a04b130209b59470f087033a28

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