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

Check canServeReadsFor in getMores

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1.10
    • Component/s: Querying, Replication
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.0, v3.6, v3.4
    • Sprint:
      Repl 2019-03-25, Repl 2019-04-08

      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

            • Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: