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

Wait for mirrored operations in mirror_reads.js

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical - P2
    • Resolution: Fixed
    • None
    • 5.0.0-rc0, 4.4.9
    • None
    • Fully Compatible
    • ALL
    • v4.9, v4.4
    • Service Arch 2021-03-08, Service Arch 2021-03-22, Service Arch 2021-04-05, Service Arch 2021-04-19
    • 126
    • 3

    Description

      There are no barriers between the tests in jstests/noPassthrough/mirror_reads.js, which allows some stats to leak between tests.

      In particular, we may trigger a series of reads in a test (from here) and wait for the number of mirrored requests to exceed a minimum threshold (in here). Once the minimum is reached, we check the number of mirrored requests against a maximum and continue with the next test. However, some of the mirrored requests may still be in progress, causing the next test to fail.

      To address this, we must ensure all mirrored requests are resolved before returning from each test, ensuring no mirroring operation spans over multiple tests.

       

      Acceptance Criteria: 

      The particular test has proper isolation between test cases.   

      Attachments

        Issue Links

          Activity

            People

              george.wangensteen@mongodb.com George Wangensteen
              amirsaman.memaripour@mongodb.com Amirsaman Memaripour
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: