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

Add comment to command invocations in mirrored_reads_slow_query.js to prevent too-permissive filtering.

    • Fully Compatible
    • ALL
    • Service Arch 2022-09-05, Service Arch 2022-10-03
    • 5
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In the named test, the call to checkContainsWithCountJson is too permissive. Prior to the failure point in the jsTest, every query is mirrored. This means that multiple log statements with mirrored: true can show up in the time between running a command and checking on the logs. Since the call to checkContainsWithCountJson checks for only one instance, this test will fail when more than one line with mirrored: true shows up.

      The solution here is to append all of the commands in the file with a comment, and then add that comment to the filter logic for the call to checkContainsWithCountJson.

            Assignee:
            celina.tala@mongodb.com Celina Tala
            Reporter:
            blake.oler@mongodb.com Blake Oler
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None