We started unlocking the RSTL during index build cleanup in commit SERVER-42824 to avoid a deadlock, described in SERVER-42621, during a replica set stepdown. Subsequently, when we moved the collection and database lock acquisition out of the index build cleanup function in SERVER-43415, we also started releasing the RSTL before cleaning up the index build. As a result, this RSTL logic within MultiIndexBlock is now unnecessary.
- is depended on by
-
SERVER-43692 enable two phase index builds by default
- Closed
- is related to
-
SERVER-42621 3 way deadlock can happen between hybrid index build, prepared transactions and stepdown thread.
- Closed
-
SERVER-43415 indexbg_killop_primary.js crashes when two phase index builds are enabled
- Closed
-
SERVER-39002 killOp against a primary index build command or index build thread must abort the index build across the replica set
- Closed
-
SERVER-42824 do not lock RSTL for index build cleanup
- Closed
- related to
-
SERVER-44045 allow secondary index builds to start without unlocking the RSTL
- Closed