[SERVER-67473] Support insert operations for implicitly replicated namespaces Created: 23/Jun/22  Updated: 29/Oct/23  Resolved: 12/Jul/22

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

Type: Improvement Priority: Major - P3
Reporter: Mindaugas Malinauskas Assignee: Josef Ahmad
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-66813 Fix issue with batch deletion when in... Closed
Related
is related to SERVER-66462 Change stream pre-image write perform... Closed
is related to SERVER-61709 Introduce implicitly replicated names... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2022-07-25
Participants:

 Description   

Add support for insert operations for implicitly replicated namespaces.
One of the places that inserts to implicitly replicated namespace is https://github.com/mongodb/mongo/blob/57e39f6e07a7aee960f98c4f57c575ff6a203934/src/mongo/db/pipeline/change_stream_pre_image_helpers.cpp#L70-L72.  It controls replication by employing repl::UnreplicatedWritesBlock mechanism. However, it is desirable to have a centralised element that suspends replication for inserts into implicitly replicated collections .

 



 Comments   
Comment by Githook User [ 11/Jul/22 ]

Author:

{'name': 'Josef Ahmad', 'email': 'josef.ahmad@mongodb.com', 'username': 'josefahmad'}

Message: SERVER-67473 Support inserting doc to implicitly replicated collections

This patch introduces support for inserting documents into implicitly
replicated collections, in addition to the already existing support for
updates and upserts. Support for insert operations is needed by two
types of implicitly replicated collections: per-tenant change
collections and the change stream pre-images collection.

Implicitly replicated collections are collections whose writes do not
usually generate oplog entries, with the exception of deletes.
Branch: master
https://github.com/mongodb/mongo/commit/8dc4287a2b949f332ba74538820abd5934e1a374

Comment by Josef Ahmad [ 08/Jul/22 ]

SERVER-66813 is another example calling for insertDocuments() support for implicitly replicated collections.

Comment by Connie Chen [ 28/Jun/22 ]

Putting this in investigating to reach out to mindaugas.malinauskas@mongodb.com for more information/details into the motivation

Comment by Josef Ahmad [ 23/Jun/22 ]

I've linked SERVER-66462 which is where I believe we start calling Collection::insertDocument() on implicitly replicated collections.

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