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

Return an error when commitQuorum includes voting buildIndexes:false members

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0, 4.4.4
    • Affects Version/s: 4.4.2
    • None
    • Environment:
      mongo db server and cli client 4.4.2
    • Fully Compatible
    • v4.4
    • Execution Team 2021-01-25

      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.

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

              Created:
              Updated:
              Resolved: