[SERVER-78116] [v4.4] Chunk migration still attempts to wait for replication with session checked out when getLastErrorDefaults are used in replica set config Created: 15/Jun/23  Updated: 29/Oct/23  Resolved: 21/Jun/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 4.4.22
Fix Version/s: 4.4.23

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

Issue Links:
Problem/Incident
is caused by SERVER-73106 [v4.4] Chunk migration attempts to wa... Closed
Related
related to SERVER-73107 [v4.4] Audit usage of default constru... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding EMEA 2023-06-26
Participants:

 Description   

SERVER-73106 attempted to fix the problem of a chunk migration waiting for replication when persisting a range deletion document with a session checked out. The issue was believed to be due to WriteConcernOptions() being used rather than specifying w: 1.

However, this is not quite the issue, and so the fix that was implemented has not actually addressed the problem. The problem with the usage in the migration destination manager is that it is using the persistent task store. The persistent task store sends its commands without any write concern at all and then waits for write concern at the end. This means that the write concern is treated as unset, allowing it to be overridden by getLastErrorDefaults.

The true solution here will be to send commands from the persistent task store with w:1 specified and then wait for the passed in write concern at the end. This will ensure that even in the presence of getLastErrorDefaults, the operation from the persistent task store honors the passed in write concern.



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

Author:

{'name': 'Allison Easton', 'email': 'allison.easton@mongodb.com', 'username': 'allisoneaston'}

Message: SERVER-78116 Attach write concern to persistent task store commands
Branch: v4.4
https://github.com/mongodb/mongo/commit/6ca68e1bffcb7734a56a8c07dca9a0a699f75cc9

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