Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-14132

Investigate changes in SERVER-53176: Return an error when commitQuorum includes voting buildIndexes:false members

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.9.0, 4.4.4
    • Component/s: manual, Server
    • Labels:
      None

      Description

      Description

      Downstream Change Summary

      For the sake of an index build's commitQuorum, replica set nodes configured with {buildIndexes:false} are not considered data-bearing.

      If a commitQuorum includes a voting replica set node that is configured to not build indexes (i.e. buildIndexes: false), the quorum will be unsatisfiable. Therefore, index builds that use the default commitQuorum of 'votingMembers' will fail if there are any of these voting, non-index-building nodes.

      The user will either need to specify a different commitQuorum or have an administrator make any buildIndexes:false nodes non-voting.

      Description of Linked Ticket

      Given a replica set with config like

      {
        _id: 'rs',
        members: [
          {
            _id: 0,
            host: '…',
            priority: 3,
          },
          {
            _id: 1,
            host: '…',
            priority: 1,
          },
          {
            _id: 2,
            host: '…',
            priority: 0,
            hidden: true,
            buildIndexes: false,
          },
        ]
      } 

      Building indexes on replica-set with default commitQuorum (votingMembers) seems to wait for build on member that doesn't build indexes (due to replica-set configuration)

      I have to lower commitQuorum to majority, otherwise createIndex command doesn't finish.

      votingMembers commitQuorum should mean: all data-bearing index-building voting replica set members.

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              joseph.dougherty Joseph Dougherty
              Reporter:
              backlog-server-pm Backlog - Core Eng Program Management Team
              Participants:
              Last commenter:
              Joseph Dougherty Joseph Dougherty
              External Reviewer:
              Louis Williams
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved:
                Days since reply:
                8 weeks ago
                Date of 1st Reply: