On restarting a two-phase index build, log a warning if the node had already voted

XMLWordPrintableJSON

    • Storage Execution
    • Storage Execution 2026-06-22
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When restarting a two-phase index build, we should check if the node had already voted to commit the index and log a warning message, so that the situation can be easily observed and monitored.  Since a vote to commit, once issued, cannot currently be "retracted" by a node, if node has to restart the index build once it had already voted, it could lead to a situation in which the primary commits the index build, leaving a window of time where the restarted node needs to catch up before it can apply further oplog entries; in these cases, easy observability can help diagnose issues more rapidly.

      The state can be observed by looking at the config database's system.indexBuilds collection, and should be emitted whenever an index build restart needs to occur when the node is already in the list of commitReadyMembers.

            Assignee:
            Alex Sarkesian
            Reporter:
            Alex Sarkesian
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: