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

Return an error when commitQuorum includes voting buildIndexes:false members

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 4.4.2
    • Fix Version/s: 4.9.0, 4.4.4
    • Labels:
      None
    • Environment:
      mongo db server and cli client 4.4.2
    • Backwards Compatibility:
      Fully Compatible
    • Backport Requested:
      v4.4
    • Sprint:
      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

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

                Dates

                Created:
                Updated:
                Resolved: