Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-80146

Support findAndModify() on time-series buckets collection

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • v7.1
    • Execution NAMR Team 2023-09-04, QI 2023-08-21, Execution NAMR Team 2023-09-18
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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 }
      

            Assignee:
            yuhong.zhang@mongodb.com Yuhong Zhang
            Reporter:
            yoonsoo.kim@mongodb.com Yoon Soo Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: