Upgrade could trigger invariant in replication recovery

XMLWordPrintableJSON

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

      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
            Reporter:
            Judah Schvimer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: