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

change max_time_ms_repl_targeting.js to do its initial insert via w:2

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.2.0-rc2, 4.3.1
    • Component/s: None
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Backport Requested:
      v4.2
    • Sprint:
      Service Arch 2019-07-01
    • Linked BF Score:
      10

      Description

      max_time_ms_repl_targeting.js performs an insert, then attempts to read that value back with a maxtimems set against a secondary without satisfiable tags.

      Part of the sanity check for that test includes running a query against the lone secondary (which absolutely should be able to pick up the record), but this races with replicating the write. BF-11945 illustrates the number of times we lose that race.

      Changing the initial write to a w:2 write would ensure it's on the secondary when we got to look for it there.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: