Oplog truncation should correctly handle identical stones

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 5.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Execution Team 2021-05-17
    • 146
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      During startup, we randomly sample records in the oplog to generate oplog stones. It is possible to sample multiple identical records as oplog stone candidates during startup.

      This would normally be pretty hard, but if the size storer is very inaccurate, this may cause us to sample more records than necessary, increasing the probability of sampling the same record multiple times.

      If two identical oplog stones do exist, an oplog record may be truncated in one iteration. In a subsequent iteration, the server may crash when it discovers that the last record in a stone ending in the same record does not exist.

            Assignee:
            Louis Williams
            Reporter:
            Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: