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

Integration test for Progress monitor

    XMLWordPrintable

Details

    • Fully Compatible
    • v5.2, v5.0, v4.4
    • Sharding 2021-12-13, Sharding 2021-12-27
    • 2

    Description

      TheĀ SERVER-59366 provides basic unit tests, we need integration test with fail injection that makes a health check to be stuck triggering crash in the mongos. We can define a failpoint to stop the HealthObservers from executing checks such that the statistics used by the progress monitor are not updated.

      Setup:

      • 2 mongos servers
      • Workload that performs write operations in a loop

      Test:

      • Start workload.
      • Wait a bit
      • Enable the failpoint on one of the mongos processes
      • Let FaultManagerConfig::getPeriodicLivenessDeadline elapse while the workload is running
      • Observe that operations are redirected to the other mongos
      • Observe that writes are accounted for before and after we enabled the failpoint

      Attachments

        Issue Links

          Activity

            People

              davis.haupt@mongodb.com Davis Haupt
              andrew.shuvalov@mongodb.com Andrew Shuvalov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: