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

Shutdown PeriodicShardedIndexConsistencyChecker after ReplicationCoordinator so no thread will try to pause the job after it has stopped

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.4, v4.2
    • Sprint:
      Sharding 2020-06-29
    • Linked BF Score:
      13

      Description

      Normally, when mongod is shutting down, stepdown will get initiated. However, this is only best effort and it is possible that it is not guaranteed to stepdown. This means that it can go ahead and call stop on the index consistency checker. If the replication in the background decides to stepdown, it can trigger the stepdown hook and call pause on the checker after it has already been stopped. This will end up hitting this assertion and since it is running inside the repl executor, the assertion will be uncaught and cause the mongod to terminate.

        Attachments

          Activity

            People

            Assignee:
            cheahuychou.mao Cheahuychou Mao
            Reporter:
            renctan Randolph Tan
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: