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

Upgrade could trigger invariant in replication recovery

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.0.0-rc0
    • Affects Version/s: None
    • Component/s: Replication
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Repl 2018-05-21

      We allow upgrades after unclean shutdown. After an unclean shutdown, it's possible we'd have a non-null appliedThrough and a null stableTimestamp in wiredTiger (so it wouldn't be boost::none). We should add an "|| stableTimestamp->isNull()" check to this invariant: https://github.com/mongodb/mongo/blob/d12afa4fdda9c6b113e7be3b4d67d757b07b50b5/src/mongo/db/repl/replication_recovery.cpp#L215-L219

            Assignee:
            judah.schvimer@mongodb.com Judah Schvimer
            Reporter:
            judah.schvimer@mongodb.com Judah Schvimer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: