[SERVER-45299] Add asserts in client_metadata_slowlog_rs.js Created: 26/Dec/19  Updated: 29/Oct/23  Resolved: 24/Mar/20

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 4.4.0-rc0, 4.7.0

Type: Task Priority: Major - P3
Reporter: Spencer Jackson Assignee: Mark Benvenuto
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.4
Sprint: Security 2020-03-23, Security 2020-04-06
Participants:
Linked BF Score: 9

 Description   

client_metadata_slowlog_rs.js issues slow queries and asserts that slow query log entries show up. However, the queries themselves don't assert that they work. Further, they use $where to ensure they take a while. We should:
1) Assert that the queries return the expected results
2) Use failpoints to trigger slow behavior.



 Comments   
Comment by Githook User [ 31/Mar/20 ]

Author:

{'name': 'Mark Benvenuto', 'email': 'mark.benvenuto@mongodb.com', 'username': 'markbenvenuto'}

Message: SERVER-45299 Make client_metadata_slowlog_rs.js more robust

(cherry picked from commit 04c0ff72fcf81f833188fb3a1d871b2add3a1958)
Branch: v4.4
https://github.com/mongodb/mongo/commit/9827140d5653025c864b5d2d2da8200f620e6ff9

Comment by Githook User [ 24/Mar/20 ]

Author:

{'email': 'mark.benvenuto@mongodb.com', 'name': 'Mark Benvenuto', 'username': 'markbenvenuto'}

Message: SERVER-45299 Make client_metadata_slowlog_rs.js more robust
Branch: master
https://github.com/mongodb/mongo/commit/04c0ff72fcf81f833188fb3a1d871b2add3a1958

Generated at Thu Feb 08 05:08:26 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.