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

Make sharded_profile.js filter for "op": "insert" when querying the profiler

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • ALL
    • Sharding 2020-09-07
    • 9

      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.

       

       

            Assignee:
            eric.maynard@mongodb.com Eric Maynard
            Reporter:
            haley.connelly@mongodb.com Haley Connelly
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: