[SERVER-16203] Add command to dump lock manager state Created: 17/Nov/14  Updated: 09/Oct/19  Resolved: 09/May/16

Status: Closed
Project: Core Server
Component/s: Concurrency, Diagnostics
Affects Version/s: None
Fix Version/s: 3.3.6

Type: New Feature Priority: Major - P3
Reporter: Scott Hernandez (Inactive) Assignee: Vincent Do
Resolution: Done Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
is documented by DOCS-8989 Add command to dump lock manager state Closed
Related
related to SERVER-43910 include Client/OpCtx information in L... Closed
is related to SERVER-24159 should check commands_lib.js against ... Backlog
Backwards Compatibility: Fully Compatible
Sprint: Integrate+Tuning 14 (05/13/16)
Participants:
Case:

 Description   

It would be nice if you could limit the output to a db/namespace as well.



 Comments   
Comment by Githook User [ 10/May/16 ]

Author:

{u'username': u'jrassi', u'name': u'Jason Rassi', u'email': u'rassi@10gen.com'}

Message: SERVER-16203 lock_info.cpp must include basic.h

Fixes compile failure on Windows introduced by 19dfb176.
Branch: master
https://github.com/mongodb/mongo/commit/b27f7bfef51f27c72fa6572cf31a16c5da71b715

Comment by Vincent Do [ 09/May/16 ]

This ticket introduce a new admin command lockInfo that will return global information about all locks on a system.

Sample output:

{
	"lockInfo" : [
		{
			"resourceId" : "{2305843009213693953: Global, 1, }",
			"granted" : [
				{
					"mode" : "IS",
					"convertMode" : "NONE",
					"enqueueAtFront" : false,
					"compatibleFirst" : false,
					"desc" : "conn1",
					"threadId" : "140399479002880",
					"connectionId" : 1,
					"client" : "127.0.0.1:60752",
					"opid" : 334149
				}
			],
			"pending" : [ ]
		}
	],
	"ok" : 1
}

Comment by Githook User [ 09/May/16 ]

Author:

{u'username': u'vincentdo', u'name': u'Vincent Do', u'email': u'do.vincent@live.com'}

Message: SERVER-16203 Add command to display global lock information
Branch: master
https://github.com/mongodb/mongo/commit/19dfb1769ca9d0ee934b092cf6a04988d7092883

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