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

TTL collections can get out of sync too easily during replica set maintenance

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.2.0-rc0
    • Fix Version/s: 2.2.0-rc1
    • Component/s: Replication
    • Labels:
      None
    • Operating System:
      ALL

      Description

      If you have a secondary that you temporarily take out of the replica set (say for maintenance, index rebuilds, etc.), then when you start up that secondary in standalone mode, the TTL monitor is going to run, possibly deleting some documents while it goes. If this happens, the secondary is going to become out of sync with the primary. In most cases it will just be missing some documents that are being deleted from the primary anyway. However, if any of those missing documents are updated on the primary before they're deleted, this is going to cause replication to stall, and the only way to fix it will involve manually editing the oplog.

      Proposed solution is to not start the TTL monitor if mongod is started without the --replSet option but there are documents in local.system.replset.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: