[SERVER-68578] HostInfoCmd returns extra.extra key path in FTDC and db.getHostinfo() Created: 04/Aug/22  Updated: 29/Oct/23  Resolved: 22/Aug/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 6.0.0, 5.1.1, 5.2.1
Fix Version/s: 6.1.0-rc0

Type: Bug Priority: Minor - P4
Reporter: Scott Kurowski Assignee: Sara Golemon
Resolution: Fixed Votes: 0
Labels: FTDC
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Minor Change
Operating System: ALL
Backport Requested:
v6.0
Steps To Reproduce:

> db.hostInfo()
{
	"system" : {
		"currentTime" : ISODate("2022-08-04T19:03:15.033Z"),
		"hostname" : "mylocalHostname:27503",
		"cpuAddrSize" : 64,
		"memSizeMB" : NumberLong(32768),
		"memLimitMB" : NumberLong(32768),
		"numCores" : 12,
		"cpuArch" : "x86_64",
		"numaEnabled" : false
	},
	"os" : {
		"type" : "Darwin",
		"name" : "Mac OS X",
		"version" : "21.6.0"
	},
	"extra" : {
		"extra" : {
			"versionString" : "Darwin Kernel Version 21.6.0: Sat Jun 18 17:07:25 PDT 2022; root:xnu-8020.140.41~1/RELEASE_X86_64",
			"alwaysFullSync" : 0,
			"nfsAsync" : 0,
			"model" : "MacBookPro15,1",
			"physicalCores" : 6,
			"cpuFrequencyMHz" : 2200,
			"cpuString" : "Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz",
			"cpuFeatures" : "FPU VME DE PSE TSC MSR PAE MCE CX8 APIC SEP MTRR PGE MCA CMOV PAT PSE36 CLFSH DS ACPI MMX FXSR SSE SSE2 SS HTT TM PBE SSE3 PCLMULQDQ DTES64 MON DSCPL VMX EST TM2 SSSE3 FMA CX16 TPR PDCM SSE4.1 SSE4.2 x2APIC MOVBE POPCNT AES PCID XSAVE OSXSAVE SEGLIM64 TSCTMR AVX1.0 RDRAND F16C",
			"pageSize" : 4096,
			"scheduler" : "dualq"
		}
	},
	"ok" : 1
}
> db.version()
6.0.0-90-g89bc2f7

Sprint: Security 2022-08-22, Security 2022-09-05
Participants:
Story Points: 1

 Description   

In MongoDB 5.1.1, 5.2.1 and 6.0.0 here and here, the HostInfoCmd command double-nests the 'extra' key as 'extra.extra'. This data also populates type 0 FTDC data chunks.



 Comments   
Comment by Githook User [ 22/Aug/22 ]

Author:

{'name': 'Scott Kurowski', 'email': 'scott.kurowski@10gen.com', 'username': 'SurfinScott'}

Message: SERVER-68578 HostInfoCmd returns extra.extra key path
Branch: master
https://github.com/mongodb/mongo/commit/b00a1cb333043adfd4d0867ec01d9b699a17cf6a

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