Make getlog2.js assert on command completion

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Security
    • Fully Compatible
    • Server Security 2025-08-01, Server Security 2025-08-15
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      getlog2.js runs an insert, a find, and an update in order to generate slow query logs that should appear in the getLog output. However, the test does not assert that these commands succeeded or even completed before checking for the slow query logs.

      The fcv_upgrade_downgrade_replica_sets_jscore_passthrough suite runs a background hook that constantly upgrades and downgrades the FCV of the replica set. Each setFeatureCompatibilityVersion command takes the global lock in S mode for a brief period to temporarily block new writes. It's likely that these background operations are causing delays in the writes/queries performed in this test, causing the expected entries to not appear occasionally on getLog.

      We should try and make the test a bit more resilient to write failures before running getLog. If this is not possible, then we can simply disable this test on that particular suite.

            Assignee:
            Varun Ravichandran
            Reporter:
            Varun Ravichandran
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: