[SERVER-48332] Initial sync failure must abort all in-progress index builds before restarting Created: 20/May/20  Updated: 29/Oct/23  Resolved: 04/Jun/20

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

Type: Bug Priority: Major - P3
Reporter: Dianna Hohensee (Inactive) Assignee: Gregory Wlodarek
Resolution: Fixed Votes: 0
Labels: bkp
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-06-15
Participants:
Linked BF Score: 8

 Description   

There is a test failure where:

The codepath for hitting the invariant is coming through:

  • InitialSyncer::_truncateOplogAndDropReplicatedDatabases
  • StorageInterfaceImpl::dropReplicatedDatabases
  • DatabaseHolderImpl::dropDb
  • invariantFailedWithMsg

DatabaseHolderImpl::dropDb technically expects the caller to have checked for in-progress index builds before calling, which didn't happen. I suppose initial sync finding an index build in-progress at a higher level is also an invariant'ing offense. Maybe think about it a bit more whether some higher level invariant about no index builds in progress should be added, or not.



 Comments   
Comment by Githook User [ 04/Jun/20 ]

Author:

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

Message: SERVER-48332 Failed initial sync attempts should abort all in-progress index builds before retrying

(cherry picked from commit 7101b350980dd10d9c24909c2ab55e89ed58b785)
Branch: v4.4
https://github.com/mongodb/mongo/commit/2d80c87f55317b68030440df59e5a796df716692

Comment by Githook User [ 04/Jun/20 ]

Author:

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

Message: SERVER-48332 Failed initial sync attempts should abort all in-progress index builds before retrying
Branch: master
https://github.com/mongodb/mongo/commit/7101b350980dd10d9c24909c2ab55e89ed58b785

Comment by Githook User [ 04/Jun/20 ]

Author:

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

Message: Revert "SERVER-48332 Failed initial sync attempts should abort all in-progress index builds before retrying"

This reverts commit ec28479e742b52c4aa036a804820bbe8aa4afd32.
Branch: master
https://github.com/mongodb/mongo/commit/0e08b33037f30094e9e213eacfe16fe88b52ff84

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