[SERVER-73390] Mitigate database version regression bug on drop database Created: 27/Jan/23  Updated: 29/Oct/23  Resolved: 02/Feb/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.3.0-rc0, 6.0.5, 6.0.6, 5.0.18

Type: Bug Priority: Major - P3
Reporter: Tommaso Tocci Assignee: Enrico Golfieri
Resolution: Fixed Votes: 0
Labels: sharding-wfbf-day
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Issue split
split from SERVER-70600 dropDatabase DDL operation might comp... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v6.2, v6.0, v5.0
Sprint: Sharding EMEA 2023-02-06
Participants:
Linked BF Score: 20

 Description   

In order to mitigate the possibility of the defected interleaving described in SERVER-70600, in case the database already exists we now enforce a clean-up for the primary and secondaries of the related database info (including the dbVersion) before passing to the second phase and flush the cache.

However, there is still a small chance for the primary to recover the dbVersion if there is an stepdown during the execution of the 1st phase, as described in SERVER-70600. Therefore SERVER-70600 won't be completely fixed until we will introduce the Recoverable critical section (SERVER-73391)



 Comments   
Comment by Githook User [ 24/Apr/23 ]

Author:

{'name': 'Enrico', 'email': 'enrico.golfieri@mongodb.com', 'username': 'enricogolfieri'}

Message: SERVER-73390 Mitigate database version regression bug on drop database ( cherry picked from 5780b40e0adf02427b5718f12959eae7d5e72939 )
Branch: v6.0
https://github.com/mongodb/mongo/commit/a83bf0725944e2d5e5dcc323a0c20c006542309c

Comment by Githook User [ 21/Apr/23 ]

Author:

{'name': 'Enrico', 'email': 'enrico.golfieri@mongodb.com', 'username': 'enricogolfieri'}

Message: SERVER-73390 Mitigate database version regression bug on drop database ( cherry picked from 5780b40e0adf02427b5718f12959eae7d5e72939 )
Branch: v5.0
https://github.com/mongodb/mongo/commit/2f5665769c421ed8641c7ddf360c541655337735

Comment by Githook User [ 03/Feb/23 ]

Author:

{'name': 'Enrico Golfieri', 'email': 'enrico.golfieri@mongodb.com', 'username': 'enricogolfieri'}

Message: SERVER-73390 Mitigate database version regression bug on drop database
Branch: master
https://github.com/mongodb/mongo/commit/5780b40e0adf02427b5718f12959eae7d5e72939

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