[SERVER-46984] Stop async updates to the oplogTruncateAfterPoint during primary server shutdown prior to clearing the oplogTruncateAfterPoint Created: 19/Mar/20  Updated: 29/Oct/23  Resolved: 20/Mar/20

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 4.4.0-rc0, 4.7.0

Type: Bug Priority: Major - P3
Reporter: Dianna Hohensee (Inactive) Assignee: Dianna Hohensee (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
is related to SERVER-47582 Stepdown in drain mode can trigger de... Closed
is related to SERVER-46992 Create JS test for v4.4-v4.2 oplogTru... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4
Sprint: Execution Team 2020-03-23, Execution Team 2020-04-06
Participants:
Linked BF Score: 0

 Description   

On replication stepdown we clear the stop the async updates to the oplogTruncateAfterPoint and then null the value here. On shutdown while primary, we clear the oplogTruncateAfterPoint here. However, we do not stop the async updates to the oplogTruncateAfterPoint on primary shutdown, so the async thread can set the oplogTruncateAfterPoint again before shutdown completes.



 Comments   
Comment by Githook User [ 20/Mar/20 ]

Author:

{'email': 'dianna.hohensee@mongodb.com', 'name': 'Dianna Hohensee', 'username': 'DiannaHohensee'}

Message: SERVER-46984 Stop async updates to the oplogTruncateAfterPoint during primary shutdown that can race with clearing the oplogTruncateAfterPoint for primary clean shutdown.

(cherry picked from commit 5f3e1db10472fcd57615424c10372444a2c8427f)
Branch: v4.4
https://github.com/mongodb/mongo/commit/9309d0b1dfb78b700e765c91d0122c83a37edc41

Comment by Githook User [ 20/Mar/20 ]

Author:

{'email': 'dianna.hohensee@mongodb.com', 'name': 'Dianna Hohensee', 'username': 'DiannaHohensee'}

Message: SERVER-46984 Stop async updates to the oplogTruncateAfterPoint during primary shutdown that can race with clearing the oplogTruncateAfterPoint for primary clean shutdown.
Branch: master
https://github.com/mongodb/mongo/commit/5f3e1db10472fcd57615424c10372444a2c8427f

Generated at Thu Feb 08 05:12:58 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.