[SERVER-67352] Skip identifying writes on orphaned documents in replica set deployments Created: 17/Jun/22  Updated: 29/Oct/23  Resolved: 22/Jun/22

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

Type: Bug Priority: Major - P3
Reporter: Antonio Fuschetto Assignee: Antonio Fuschetto
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Problem/Incident
is caused by SERVER-65858 Mark the applyOps entries when the op... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v6.0
Sprint: Sharding EMEA 2022-06-27
Participants:
Linked BF Score: 135

 Description   

In case of a client directly connected to a shard of sharded deployment, write operations on orphaned documents are properly flagged in order to avoid notifications on change streams (see PM-2423).

The logic to identify if a write operation involves an orphaned document is relatively expensive, and it's currently triggered in replica set deployments as well. This is useless and wasteful as there are no orphaned documents.

The goal of this ticket is to review where the currently logic is used (e.g., here) and restrict it to nodes that are part of a sharded deployments.



 Comments   
Comment by Githook User [ 23/Jun/22 ]

Author:

{'name': 'Antonio Fuschetto', 'email': 'antonio.fuschetto@mongodb.com', 'username': 'afuschetto'}

Message: SERVER-67352 Skip identifying writes on orphaned documents in replica set deployments
Branch: davish/SERVER-63099
https://github.com/mongodb/mongo/commit/e2d8053e518259c1df27211281a7cfa697dfaa12

Comment by Githook User [ 23/Jun/22 ]

Author:

{'name': 'Antonio Fuschetto', 'email': 'antonio.fuschetto@mongodb.com', 'username': 'afuschetto'}

Message: SERVER-67352 Skip identifying writes on orphaned documents in replica set deployments
Branch: v6.0
https://github.com/mongodb/mongo/commit/9d441f81c8ad755aa016ff546030e2324c1dab64

Comment by Githook User [ 22/Jun/22 ]

Author:

{'name': 'Antonio Fuschetto', 'email': 'antonio.fuschetto@mongodb.com', 'username': 'afuschetto'}

Message: SERVER-67352 Skip identifying writes on orphaned documents in replica set deployments
Branch: master
https://github.com/mongodb/mongo/commit/e2d8053e518259c1df27211281a7cfa697dfaa12

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