[SERVER-38691] serverInfo not present in explain output for aggregation Created: 18/Dec/18  Updated: 29/Oct/23  Resolved: 04/Nov/19

Status: Closed
Project: Core Server
Component/s: Aggregation Framework
Affects Version/s: 4.1.4
Fix Version/s: 3.6.16, 4.2.2, 4.0.14, 4.3.2

Type: Improvement Priority: Major - P3
Reporter: Chris Harris Assignee: David Percy
Resolution: Fixed Votes: 1
Labels: query-44-grooming, storch
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Documented
is documented by DOCS-13197 Investigate changes in SERVER-38691: ... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.2, v4.0, v3.6
Sprint: Query 2019-11-04, Query 2019-11-18
Participants:

 Description   

Explain output for find commands include a  serverInfo object that contains version information:

> db.foo.explain().find().finish().serverInfo
{
	"host" : "MacBook-Pro.local",
	"port" : 27017,
	"version" : "4.1.4",
	"gitVersion" : "2f4b5918497b09a226a3ec5dcff930edd52ea1e9"
} 

However, this information is not available for aggregation commands:

> db.foo.explain().aggregate([])
{
	"stages" : [
		{
			"$cursor" : {
				"query" : {
					
				},
				"queryPlanner" : {
					"plannerVersion" : 1,
					"namespace" : "test.foo",
					"indexFilterSet" : false,
					"parsedQuery" : {
						
					},
					"queryHash" : "8B3D4AB8",
					"winningPlan" : {
						"stage" : "COLLSCAN",
						"direction" : "forward"
					},
					"rejectedPlans" : [ ]
				}
			}
		}
	],
	"ok" : 1
} 

This would be helpful to include for more complete information when troubleshooting .



 Comments   
Comment by Githook User [ 19/Nov/19 ]

Author:

{'name': 'David Percy', 'username': 'dpercy', 'email': 'david.percy@mongodb.com'}

Message: SERVER-38691 Include serverInfo in explain output for aggregation and sharding
Branch: v3.6
https://github.com/mongodb/mongo/commit/67f33c1ea3d2f57c6a3fbe29ab2becc122b7b14f

Comment by Githook User [ 18/Nov/19 ]

Author:

{'username': 'dpercy', 'email': 'david.percy@mongodb.com', 'name': 'David Percy'}

Message: SERVER-38691 Un-blacklist explain_cmd.js for last_stable_mongos
Branch: master
https://github.com/mongodb/mongo/commit/b7aab5359c680cef0de3ba2a665b7c70c659ffb6

Comment by Githook User [ 14/Nov/19 ]

Author:

{'name': 'David Percy', 'username': 'dpercy', 'email': 'david.percy@mongodb.com'}

Message: SERVER-38691 Add explain_cmd.js to backports_required_for_multiversion_tests.yml
Branch: v4.2
https://github.com/mongodb/mongo/commit/5b43207cb4b6b34d9a2c7e64fc9697c629f2d1dd

Comment by Githook User [ 13/Nov/19 ]

Author:

{'name': 'David Percy', 'username': 'dpercy', 'email': 'david.percy@mongodb.com'}

Message: SERVER-38691 Include serverInfo in explain output for aggregation and sharding
Branch: v4.0
https://github.com/mongodb/mongo/commit/e75d261790ca1fdbe21afce043af16b552d9a293

Comment by Githook User [ 11/Nov/19 ]

Author:

{'name': 'David Percy', 'username': 'dpercy', 'email': 'david.percy@mongodb.com'}

Message: SERVER-38691 Include serverInfo in explain output for aggregation and sharding
Branch: v4.2
https://github.com/mongodb/mongo/commit/b26181808380c2a448687d331dab7d19e9f9f2e4

Comment by Githook User [ 04/Nov/19 ]

Author:

{'name': 'David Percy', 'username': 'dpercy', 'email': 'david.percy@mongodb.com'}

Message: SERVER-38691 Include serverInfo in explain output for aggregation and sharding
Branch: master
https://github.com/mongodb/mongo/commit/80e0497ebaaaf87707239f661cac2ab99ca9a88c

Comment by David Storch [ 12/Sep/19 ]

Flagging for re-triage. We should consider this for Q4 quick wins.

Generated at Thu Feb 08 04:49:42 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.