[SERVER-75756] Check query presence in plan cache Created: 06/Apr/23  Updated: 03/Nov/23  Resolved: 18/May/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0, 7.0.4

Type: Task Priority: Major - P3
Reporter: Timour Katchaounov Assignee: Timour Katchaounov
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:
v7.0
Participants:
Linked BF Score: 5

 Description   

The test plan_cache_clear.js tests the plan cache state via just checking the number of entries in the plan cache. This results in unstable tests because other threads may insert other plans in the cache.

Change the test so that it tests for actual presence of a queries in the cache instead of just counting the number of cache entries.



 Comments   
Comment by Githook User [ 03/Nov/23 ]

Author:

{'name': 'Timour Katchaounov', 'email': 'timour.katchaounov@mongodb.com', 'username': 'timourk'}

Message: SERVER-75756 Check query presence in plan cache

(cherry picked from commit a723af8863c5fae1eee7b0a891066e923468e974)
Branch: v7.0
https://github.com/mongodb/mongo/commit/a3a578ebaa484ee0694323f18222a9db726afe11

Comment by Githook User [ 18/May/23 ]

Author:

{'name': 'Timour Katchaounov', 'email': 'timour.katchaounov@mongodb.com', 'username': 'timourk'}

Message: SERVER-75756 Check query presence in plan cache
Branch: master
https://github.com/mongodb/mongo/commit/a723af8863c5fae1eee7b0a891066e923468e974

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