[SERVER-56097] [SBE][causally_consistent_jscore_passthrough] Test wildcard_index_collation.js fails with SBE turned on Created: 14/Apr/21  Updated: 29/Oct/23  Resolved: 15/Apr/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.0.0-rc0

Type: Bug Priority: Major - P3
Reporter: Anton Korshunov Assignee: Eric Cox (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-56091 Enable core causally consistent passt... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:

resmoke run --suites=causally_consistent_jscore_passthrough --mongodSetParameters='{featureFlagSBE: true}' jstests/core/wildcard_index_collation.js

Sprint: Query Execution 2021-04-19
Participants:

 Description   

[js_test:wildcard_index_collation] 		"internalQueryMaxBlockingSortMemoryUsageBytes" : 104857600,
[js_test:wildcard_index_collation] 		"internalQueryProhibitBlockingMergeOnMongoS" : 0,
[js_test:wildcard_index_collation] 		"internalQueryMaxAddToSetBytes" : 104857600,
[js_test:wildcard_index_collation] 		"internalDocumentSourceSetWindowFieldsMaxMemoryBytes" : 104857600
[js_test:wildcard_index_collation] 	},
[js_test:wildcard_index_collation] 	"command" : {
[js_test:wildcard_index_collation] 		"find" : "wildcard_collation",
[js_test:wildcard_index_collation] 		"filter" : {
[js_test:wildcard_index_collation] 			"a.b" : "string"
[js_test:wildcard_index_collation] 		},
[js_test:wildcard_index_collation] 		"readConcern" : {
[js_test:wildcard_index_collation] 			"afterClusterTime" : Timestamp(1618157394, 12)
[js_test:wildcard_index_collation] 		},
[js_test:wildcard_index_collation] 		"lsid" : {
[js_test:wildcard_index_collation] 			"id" : UUID("65135908-4e92-46b1-8300-e2963c5900ac")
[js_test:wildcard_index_collation] 		},
[js_test:wildcard_index_collation] 		"$clusterTime" : {
[js_test:wildcard_index_collation] 			"clusterTime" : Timestamp(1618157394, 12),
[js_test:wildcard_index_collation] 			"signature" : {
[js_test:wildcard_index_collation] 				"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
[js_test:wildcard_index_collation] 				"keyId" : NumberLong(0)
[js_test:wildcard_index_collation] 			}
[js_test:wildcard_index_collation] 		},
[js_test:wildcard_index_collation] 		"$db" : "test"
[js_test:wildcard_index_collation] 	},
[js_test:wildcard_index_collation] 	"ok" : 1,
[js_test:wildcard_index_collation] 	"$clusterTime" : {
[js_test:wildcard_index_collation] 		"clusterTime" : Timestamp(1618157394, 12),
[js_test:wildcard_index_collation] 		"signature" : {
[js_test:wildcard_index_collation] 			"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
[js_test:wildcard_index_collation] 			"keyId" : NumberLong(0)
[js_test:wildcard_index_collation] 		}
[js_test:wildcard_index_collation] 	},
[js_test:wildcard_index_collation] 	"operationTime" : Timestamp(1618157394, 12)
[js_test:wildcard_index_collation] }
[js_test:wildcard_index_collation] doassert@src/mongo/shell/assert.js:20:14
[js_test:wildcard_index_collation] _assertCompare@src/mongo/shell/assert.js:975:9
[js_test:wildcard_index_collation] assert.gt@src/mongo/shell/assert.js:985:9
[js_test:wildcard_index_collation] assertWildcardIndexAnswersQuery@jstests/core/wildcard_index_collation.js:41:5
[js_test:wildcard_index_collation] @jstests/core/wildcard_index_collation.js:89:1
[js_test:wildcard_index_collation] @jstests/core/wildcard_index_collation.js:15:2



 Comments   
Comment by Githook User [ 15/Apr/21 ]

Author:

{'name': 'Eric Cox', 'email': 'eric.cox@mongodb.com', 'username': 'ericox'}

Message: SERVER-56097 Accomidate SBE explain format in wildcard_index_collation.js
Branch: master
https://github.com/mongodb/mongo/commit/bab631377b164850330fc2700547d9686c75a741

Comment by Eric Cox (Inactive) [ 15/Apr/21 ]

Code Review: https://mongodbcr.appspot.com/786110015/

Comment by Eric Cox (Inactive) [ 15/Apr/21 ]

The winningPlan between sbe and the classic engine differ in the sense that the winningPlan for sbe uses the 'queryPlan' format and the former doesn't. 

https://github.com/mongodb/mongo/blob/master/jstests/libs/analyze_plan.js#L10-L16

The jstest had a helper function that referenced the .winningPlan property on the shard array. The fix is to just use getWinningPlan(). 

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