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

Replicated data definition commands will fail on secondaries during background index build

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical - P2
    • Resolution: Fixed
    • None
    • 2.6.1, 2.7.0
    • Replication
    • None
    • ALL
    • Hide

      e.g. in indexbg_drop.js, the drop doesn't actually take effect on the secondary. The drop command fails but we fail to notice the problem due to SERVER-13601

      Show
      e.g. in indexbg_drop.js, the drop doesn't actually take effect on the secondary. The drop command fails but we fail to notice the problem due to SERVER-13601

    Description

      Issue Status as of April 22, 2014

      ISSUE SUMMARY
      Data definition commands, like creating or dropping databases, collections or indexes, will fail on a secondary if that secondary has a background index build in progress on the same collection.

      USER IMPACT
      The failure is silent and can lead to inconsistency between replica set members.

      WORKAROUNDS
      Building the index in the foreground avoids the issue. If users rely on background index builds, they should confirm that all index builds have completed before running any data definition commands.

      RESOLUTION
      The secondaries wait to apply the data definition commands if a background index build is in progress.

      AFFECTED VERSIONS
      Version 2.6.0 is affected by this bug.

      PATCHES
      The patch is included in the 2.6.1 production release.

      Attachments

        Activity

          People

            schwerin@mongodb.com Andy Schwerin
            milkie@mongodb.com Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: