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

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

    • Fully Compatible
    • v3.6, v3.4
    • Repl 2018-03-26

      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.

            daniel.gottlieb@mongodb.com Daniel Gottlieb (Inactive)
            daniel.gottlieb@mongodb.com Daniel Gottlieb (Inactive)
            0 Vote for this issue
            3 Start watching this issue