Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-53176

Return an error when commitQuorum includes voting buildIndexes:false members

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 4.4.2
    • 4.9.0, 4.4.4
    • None
    • mongo db server and cli client 4.4.2
    • Fully Compatible
    • v4.4
    • Execution Team 2021-01-25

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              louis.williams@mongodb.com Louis Williams
              konrad.baumgart@erli.pl Konrad Baumgart
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: