[SERVER-48415] resumable index build writes placeholder document to internal table on clean shutdown Created: 26/May/20  Updated: 29/Oct/23  Resolved: 09/Jun/20

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 4.7.0

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

Issue Links:
Related
related to SERVER-48416 write index build progress to interna... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2020-06-15
Participants:

 Description   

Currently, on a clean shutdown, the index build process leave the state of the catalog entry for the index build in a ready:false state. To support resumable index builds, we propose to also write a document detailing the current progress of the index build to an internal table during the shutdown procedure. This ticket will add the required functionality to the shutdown code/internal interfaces to support this write operation. The actual progress information for the index build will be kept minimal and should not affect existing recovery logic for index builds at startup.

Additional details on the internal table:

  • one table per index build
  • just basic info for now to verify table write operation at shutdown (and read at startup).
    • key: <index build uuid>
    • value: (BSON) {
      _id: <index build UUID>,
      phase: “unknown”,
      collectionScanPosition, RecordId(0),
      indexes: [
      {
      tempDir: “”, // leave blank
      fileName: “”, // leave blank
      ranges: [], // empty array
      tempDir: “”,
      sideWritesTable: <ident>, // actual ident, if available
      dupKeyTempTable: <ident>, // actual ident, if available
      skippedRecordTrackerTable: <ident>, // actual ident, if available
      ],


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

Author:

{'name': 'Gregory Noma', 'email': 'gregory.noma@gmail.com', 'username': 'gregorynoma'}

Message: SERVER-48415 Write placeholder document to internal table on clean shutdown for resumable index builds
Branch: master
https://github.com/mongodb/mongo/commit/514a8301fbe6919ced991942519459854c6cc570

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