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

Check canServeReadsFor in getMores

    XMLWordPrintable

Details

    • Fully Compatible
    • ALL
    • v4.0, v3.6, v3.4
    • Repl 2019-03-25, Repl 2019-04-08
    • 6

    Description

      The "getMore" command path appears to never call canServeReadsFor, meaning that we could end up serving reads during a rollback. Data in this time could be inconsistent. For rollback via refetch, we refetch documents from the future and then play updates on them from the past which can lead to documents that never existed being returned. Rollback to a Timestamp is likely safe since it never is in an inconsistent state, but it's worthwhile to be consistent with the "find" command here.

      Discovered by david.storch.

      Attachments

        Activity

          People

            lingzhi.deng@mongodb.com Lingzhi Deng
            judah.schvimer@mongodb.com Judah Schvimer
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: