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

PeriodicKillSecondaries hook can run validate while a secondary is still applying operations

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Backport Requested:
      v3.6, v3.4
    • Sprint:
      Repl 2018-03-26

      Description

      After PeriodicKillSecondaries does a pass of crashing the secondary, it runs validate followed by checking dbhashes.

      However, the secondary upon coming back up and rejoining the replica set for validation, may still have oplog entries to apply. This can result in validation being run before a secondary has completed applying operations.

      Checking the dbhashes waits for secondaries to have caught up before proceeding. If instead the snippet first checked dbhashes then validated, validating would see all collections in their end state for examining. This ordering would also match how the YAML configuration files order those two hooks.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: