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

Replace lock_stats.js with a unit test

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution
    • Fully Compatible
    • Execution Team 2024-09-16
    • 0

      lock_stats.js essentially tests that the time spent trying to acquire a lock is correctly calculated and does so by setting an upper and lower bound on this count. However, it relies on no other operations running in parallel while it is running, which occasionally causes the test to fail. We can make testing this behavior less flaky by instead checking for the same property within a unit test. There is already some existing coverage of this behavior in lock_stats_test.cpp.

            Assignee:
            damian.wasilewicz@mongodb.com Damian Wasilewicz
            Reporter:
            damian.wasilewicz@mongodb.com Damian Wasilewicz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: