[SERVER-46310] index_build_restart_standalone.js shuts down the replica set before the index ident is known to the catalogue Created: 21/Feb/20  Updated: 29/Oct/23  Resolved: 12/Mar/20

Status: Closed
Project: Core Server
Component/s: Index Maintenance
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
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4
Sprint: Execution Team 2020-03-23
Participants:
Linked BF Score: 32

 Description   

The test starts building index a_1 with the intent to see its behaviour upon restarting the replica set nodes in standalone mode. Unfortunately, the index does not get durably stored in the index catalogue before shutdown.

loadCatalog:
    ....
    Id: RecordId(12) Value: { md: { ns: "test.testColl", options: { uuid: UUID("7aeafa4b-8d72-465e-89e4-9c32c00220a2") }, indexes: [ { spec: { v: 2, key: { _id: 1 }, name: "_id_" }, ready: true, multikey: false, multikeyPaths: { _id: BinData(0, 00) }, head: 0, prefix: -1, backgroundSecondary: false } ], prefix: -1 }, idxIdent: { _id_: "index-20--1810076281073468278" }, ns: "test.testColl", ident: "collection-19--1810076281073468278" }
 
Dropping unknown ident: index-21--1810076281073468278



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

Author:

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

Message: SERVER-46310 index_build_restart_standalone.js should startup standalone nodes with 'recoverFromOplogAsStandalone=true'

(cherry picked from commit 2dba93df686147f88bc13486365b1cae86958c7f)
Branch: v4.4
https://github.com/mongodb/mongo/commit/cb002a42a593f80ee5062ee044667b46b93e354b

Comment by Githook User [ 12/Mar/20 ]

Author:

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

Message: SERVER-46310 index_build_restart_standalone.js should startup standalone nodes with 'recoverFromOplogAsStandalone=true'
Branch: master
https://github.com/mongodb/mongo/commit/2dba93df686147f88bc13486365b1cae86958c7f

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