[SERVER-46647] Stepping down the primary when running 'dropDatabase' can hit an invariant due to yielded locks Created: 05/Mar/20  Updated: 29/Oct/23  Resolved: 06/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: Gregory Wlodarek Assignee: Gregory Wlodarek
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-47087 Stepping down the primary when runnin... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4
Sprint: Execution Team 2020-03-09
Participants:
Linked BF Score: 46

 Description   

There's a small window of time here, that if the node was to step down, it would kill the dropDatabase operation and invariant when trying to set the drop-pending flag back to false here.



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

Author:

{'username': 'GWlodarek', 'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com'}

Message: SERVER-46647 Stepping down the primary when running 'dropDatabase' can hit an invariant due to yielded locks

(cherry picked from commit 0d8dbe14d81b9f3d6db3628b10cd6340787d1567)
Branch: v4.4
https://github.com/mongodb/mongo/commit/23f786cfeb72efeab54b75164efd2b7e12b30e25

Comment by Githook User [ 06/Mar/20 ]

Author:

{'name': 'Gregory Wlodarek', 'username': 'GWlodarek', 'email': 'gregory.wlodarek@mongodb.com'}

Message: SERVER-46647 Stepping down the primary when running 'dropDatabase' can hit an invariant due to yielded locks
Branch: master
https://github.com/mongodb/mongo/commit/0d8dbe14d81b9f3d6db3628b10cd6340787d1567

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