[SERVER-46892] two phase index build allowed to start on drop-pending collection Created: 16/Mar/20  Updated: 29/Oct/23  Resolved: 03/Apr/20

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

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

Issue Links:
Backports
Depends
Related
related to SERVER-48245 index drop allowed on drop-pending co... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4
Sprint: Execution Team 2020-04-06, Execution Team 2020-04-20
Participants:
Linked BF Score: 44

 Description   

A collection drop and index creation on a primary node may interleave in a way that causes a two phase index build to start the index build on a drop-pending collection namespace (db.system.drop.*). This is partly due to the checks, introduced in SERVER-43403, that a collection drop has to bypass in SERVER-46122 when we have to potentially abort in-progress two phase index builds.

This bug affects configurations that disable majority reads or use the

{ephemeralForTest}

storage engine.



 Comments   
Comment by Githook User [ 13/Apr/20 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-46892 disallow index builds on drop-pending namespaces (system.drop.*) if we are primary.

(cherry picked from commit cf571d9224eff2b613756af87fb0e2974192138a)
Branch: v4.4
https://github.com/mongodb/mongo/commit/48788c346c43ca7b2f1d0cbe0dc38cb02f1edcde

Comment by Githook User [ 13/Apr/20 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-46892 add hangCreateIndexesBeforeStartingIndexBuild fail point and improve registration and collection dropped messages

(cherry picked from commit 89d74003c2e88b2d3a0fb4aaac7ec6b5e4dd9ad5)
Branch: v4.4
https://github.com/mongodb/mongo/commit/c24b9db17ba68b044ad13c8a473774a5553d19a1

Comment by Githook User [ 02/Apr/20 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-46892 disallow index builds on drop-pending namespaces (system.drop.*) if we are primary.
Branch: master
https://github.com/mongodb/mongo/commit/cf571d9224eff2b613756af87fb0e2974192138a

Comment by Githook User [ 02/Apr/20 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-46892 add hangCreateIndexesBeforeStartingIndexBuild fail point and improve registration and collection dropped messages
Branch: master
https://github.com/mongodb/mongo/commit/89d74003c2e88b2d3a0fb4aaac7ec6b5e4dd9ad5

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