[SERVER-68138] Add comment to command invocations in mirrored_reads_slow_query.js to prevent too-permissive filtering. Created: 19/Jul/22  Updated: 29/Oct/23  Resolved: 21/Sep/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.2.0-rc0

Type: Bug Priority: Major - P3
Reporter: Blake Oler Assignee: Celina Tala
Resolution: Fixed Votes: 0
Labels: neweng, save-for-celina
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Service Arch 2022-09-05, Service Arch 2022-10-03
Participants:
Linked BF Score: 5

 Description   

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.



 Comments   
Comment by Githook User [ 21/Sep/22 ]

Author:

{'name': 'Celina Tala', 'email': 'celinahtala@gmail.com', 'username': 'celinatala-1'}

Message: SERVER-68138 Added namespace to filter logic in `checkContainsWithCountJson`
Branch: master
https://github.com/mongodb/mongo/commit/a02b50529c04b4c304f639df6a07930643ba48b3

Generated at Thu Feb 08 06:10:00 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.