[SERVER-14731] plan_cache_ties.js sometimes fails Created: 30/Jul/14  Updated: 11/Mar/15  Resolved: 06/Aug/14

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 2.6.4, 2.7.5

Type: Bug Priority: Minor - P4
Reporter: David Storch Assignee: David Storch
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Completed:
Participants:
Linked BF Score: 0

 Description   

We've seen a few failures of this test on the 2.6 branch:

	
planCacheListQueryShapes() = { "shapes" : [ ], "ok" : 1 }
planCacheListQueryShapes() = { "shapes" : [ ], "ok" : 1 }
planCacheListQueryShapes() = {
	"shapes" : [
		{
			"query" : {
				"a" : 2,
				"b" : 2
			},
			"sort" : {
				
			},
			"projection" : {
				
			}
		}
	],
	"ok" : 1
}
assert: [0] != [1] are not equal : unexpected number of query shapes in plan cache
Error: [0] != [1] are not equal : unexpected number of query shapes in plan cache
    at Error (<anonymous>)
    at doassert (src/mongo/shell/assert.js:11:14)
    at Function.assert.eq (src/mongo/shell/assert.js:38:5)
    at /data/mci/shell/src/jstests/core/plan_cache_ties.js:36:8

My hypothesis is that it is 2.6-only test flakiness due to the contribution of NEED_FETCH to plan ranking. NEED_FETCH has been removed in master. Extra debug info is needed in order to confirm this hypothesis.



 Comments   
Comment by Githook User [ 31/Jul/14 ]

Author:

{u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}

Message: SERVER-14731 print more debug info when plan_cache_ties.js fails

(cherry picked from commit 791e2e00806449a01e7dec4d9b969392e183f393)
Branch: v2.6
https://github.com/mongodb/mongo/commit/0716e2c0158306dbf75408d980c35cb23b829017

Comment by Githook User [ 30/Jul/14 ]

Author:

{u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}

Message: SERVER-14731 print more debug info when plan_cache_ties.js fails
Branch: master
https://github.com/mongodb/mongo/commit/791e2e00806449a01e7dec4d9b969392e183f393

Generated at Thu Feb 08 03:35:47 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.