[SERVER-50634] Make sharded_profile.js filter for "op": "insert" when querying the profiler Created: 28/Aug/20  Updated: 29/Oct/23  Resolved: 01/Sep/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.7.0

Type: Bug Priority: Major - P3
Reporter: Haley Connelly Assignee: Eric Maynard
Resolution: Fixed Votes: 0
Labels: sharding-wfbf-day
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Problem/Incident
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding 2020-09-07
Participants:
Linked BF Score: 9

 Description   

The test should filter the profiler for entries matching "op": "insert" to ensure it validates the correct profile entry.

Context
Currently, sharded_profile.js calls findOne() on shard0's profiler and checks that the profile entry matches the insertion performed on the collection. 

However, it's possible that other commands could be logged in the profiler from tasks running in the background - like the aggregate sent by the PeriodicShardedIndexConsistencyChecker, whose profile entry can be differentiated because it has "op": "command" rather than "op": "insert". Thus, the test could fail by trying to validate the profile entry added during the index consistency check rather than the entry for the insertions.

 

 



 Comments   
Comment by Githook User [ 01/Sep/20 ]

Author:

{'name': 'Eric Maynard', 'email': 'eric.maynard@mongodb.com', 'username': 'ermay12'}

Message: SERVER-50634 Make sharded_profile.js filter for "op": "insert" when querying the profiler
Branch: master
https://github.com/mongodb/mongo/commit/53036dc51d2477f4f74a8241a6fe6055c038bdcf

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