[SERVER-46368] Race on shutdown in indexbg_shutdown.js Created: 24/Feb/20  Updated: 29/Oct/23  Resolved: 11/Mar/20

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

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

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4
Sprint: Execution Team 2020-03-23
Participants:
Linked BF Score: 21

 Description   

This is a race condition specific to this test. Outside of this test, we shut down replication before killing index builds.

The race condition is as follows:

  • Kill the index build by aborting without cleanup
  • Process a commitIndexBuild oplog entry, which attempts to restart the index build. The index is ready:false on disk, which leads to a "Cannot build two identical indexes" error message by the applier thread.

This test may be able to be rewritten without the "leaveIndexBuildUnfinishedForShutdown"  failpiont that violates shutdown ordering.



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

Author:

{'name': 'Louis Williams', 'username': 'louiswilliams', 'email': 'louis.williams@mongodb.com'}

Message: SERVER-46368 Remove indexbg_shutdown.js

(cherry picked from commit 4f64636b0da40d33662d7160a98f8a48fc5aa2fa)
Branch: v4.4
https://github.com/mongodb/mongo/commit/60f731403d2cebe001c697111a565d5033942660

Comment by Githook User [ 11/Mar/20 ]

Author:

{'name': 'Louis Williams', 'username': 'louiswilliams', 'email': 'louis.williams@mongodb.com'}

Message: SERVER-46368 Remove indexbg_shutdown.js
Branch: master
https://github.com/mongodb/mongo/commit/4f64636b0da40d33662d7160a98f8a48fc5aa2fa

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