[SERVER-34830] currentOp of replicated createIndexes does not display command name Created: 03/May/18  Updated: 29/Oct/23  Resolved: 03/Dec/18

Status: Closed
Project: Core Server
Component/s: Diagnostics, Index Maintenance, Replication
Affects Version/s: 3.7.9
Fix Version/s: 4.1.6

Type: Bug Priority: Major - P3
Reporter: James Wahlin Assignee: Benety Goh
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
Duplicate
is duplicated by SERVER-36759 Overhaul currentOp output for createI... Closed
Related
related to SERVER-32943 Query during background index build c... Closed
is related to SERVER-37729 killOp must fail to kill secondary in... Closed
is related to SERVER-33499 Consolidate CurOp initialization Backlog
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Storage NYC 2018-12-03
Participants:

 Description   

Here is an example of a replicated createIndexes currentOp entry:

{
	"host" : "foo:20021",
	"desc" : "repl index builder 7",
	"active" : true,
	"currentOpTime" : "2018-05-03T15:57:06.372-0400",
	"opid" : 363,
	"secs_running" : NumberLong(6),
	"microsecs_running" : NumberLong(6705181),
	"op" : "none",
	"ns" : "test.system.indexes",
	"command" : {
		"v" : 2,
		"key" : {
			"x" : 1
		},
		"name" : "x_1",
		"background" : true,
		"ns" : "test.coll"
	},
	"msg" : "Index Build (background) Index Build (background): 100/100 100%",
	"progress" : {
		"done" : 100,
		"total" : 100
	},
	"numYields" : 6,
	"locks" : {
		"Global" : "w",
		"Database" : "w",
		"Collection" : "w"
	},
	"waitingForLock" : false,
	"lockStats" : {
		"Global" : {
			"acquireCount" : {
				"w" : NumberLong(7)
			},
			"acquireWaitCount" : {
				"w" : NumberLong(1)
			},
			"timeAcquiringMicros" : {
				"w" : NumberLong(61)
			}
		},
		"Database" : {
			"acquireCount" : {
				"w" : NumberLong(7),
				"W" : NumberLong(1)
			}
		},
		"Collection" : {
			"acquireCount" : {
				"w" : NumberLong(7)
			}
		}
	}
} 

 

I believe "createIndexes" is being stripped from the command object here.



 Comments   
Comment by Benety Goh [ 03/Dec/18 ]

The command name has been added in SERVER-37729, addressing the concern raised in this ticket. Closing.

Comment by Benety Goh [ 03/Dec/18 ]

We added the command name to the currentOp output during SERVER-37729 in this commit:

https://github.com/mongodb/mongo/commit/03e13f90426a82a97cbb0f926385e09904519259

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