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

Calculate the snapshot window more precisely in snapshot_history_window.js

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.7.0
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • Repl 2020-06-01
    • 22

    Description

      We use the time before the initial insert as the startTime of the window calculation. I think it would be more precise to take the startTime after the insert takes place. And it is more precise to sleep based on the window expiration time (like in chunk_history_window.js) before testing a command would fail with SnapshotTooOld error.

      Attachments

        Activity

          People

            lingzhi.deng@mongodb.com Lingzhi Deng
            lingzhi.deng@mongodb.com Lingzhi Deng
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: