Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-13584

Fill out currentOp "ns" field before waiting on the lock

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.7.8
    • Affects Version/s: None
    • Component/s: Diagnostics, Write Ops
    • None
    • Query 2.7.8

      > db.currentOp()
      {
      	"inprog" : [
      		{
      			"opid" : 824735,
      			"active" : false,
      			"op" : "insert",
      			"ns" : "",
      			"insert" : {
      
      			},
      			"client" : "10.61.157.244:60486",
      			"desc" : "conn62",
      			"threadId" : "0x7f37873b4700",
      			"connectionId" : 62,
      			"locks" : {
      				"^test" : "W"
      			},
      			"waitingForLock" : true,
      			"numYields" : 0,
      			"lockStats" : {
      				"timeLockedMicros" : {
      
      				},
      				"timeAcquiringMicros" : {
      
      				}
      			}
      		},
      		{
      			"opid" : 824726,
      			"active" : false,
      			"op" : "insert",
      			"ns" : "",
      			"insert" : {
      
      			},
      			"client" : "10.61.157.244:60494",
      			"desc" : "conn72",
      			"threadId" : "0x7f37871b2700",
      			"connectionId" : 72,
      			"locks" : {
      				"^test" : "W"
      			},
      			"waitingForLock" : true,
      			"numYields" : 0,
      			"lockStats" : {
      				"timeLockedMicros" : {
      
      				},
      				"timeAcquiringMicros" : {
      
      				}
      			}
      		},
      

      inserts were being done on the "test.test" namespace.

      Sample inserted doc:

      {
      	"_id" : ObjectId("534c0b5a3004fa83c48f8f5f"),
      	"ts" : NumberLong("1397492570554"),
      	"payload" : "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      	"val" : 17241
      }
      

            Assignee:
            rassi J Rassi
            Reporter:
            alex.komyagin@mongodb.com Alexander Komyagin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: