-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: 4.4.22
-
Component/s: None
-
None
-
Fully Compatible
-
ALL
-
Sharding EMEA 2023-06-26
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.
- is caused by
-
SERVER-73106 [v4.4] Chunk migration attempts to wait for replication with session checked out when getLastErrorDefaults are used in replica set config, leading to server crash
- Closed
- related to
-
SERVER-73107 [v4.4] Audit usage of default constructed WriteConcernOptions() in sharding catalog manipulation
- Closed