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

moveChunk fails because metadata collection could not be locked

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.8, 2.2.0-rc0
    • Component/s: Sharding
    • Labels:
    • Operating System:
      ALL

      Description

      	
       m30000| Wed Jul 11 03:25:12 [conn15] command admin.$cmd command: { moveChunk: "test.foo", from: "localhost:30000", to: "localhost:30001", fromShard: "shard0000", toShard: "shard0001", min: { num: MinKey }, max: { num: 4.0 }, maxChunkSizeBytes: 52428800, shardId: "test.foo-num_MinKey", configdb: "localhost:30000,localhost:30001,localhost:30002", secondaryThrottle: false } ntoreturn:1 keyUpdates:0  reslen:350 394ms
       m30999| Wed Jul 11 03:25:12 [conn1] moveChunk result: { who: { _id: "test.foo", process: "bs-mm1.local:30000:1341991510:1982529625", state: 1, ts: ObjectId('4ffd2a58e84c6f09779dc5cb'), when: new Date(1341991512098), who: "bs-mm1.local:30000:1341991510:1982529625:conn19:594228950", why: "migrate-{ num: MinKey }" }, errmsg: "the collection metadata could not be locked with lock migrate-{ num: MinKey }", ok: 0.0 }
      	"movechunk" : "test.foo",
      	"find" : {
      		"num" : 3
      	},
      	"to" : "localhost:30001"
      Wed Jul 11 03:25:12 uncaught exception: command {
      	"cause" : {
      		"who" : {
      			"_id" : "test.foo",
      			"process" : "bs-mm1.local:30000:1341991510:1982529625",
      			"state" : 1,
      			"ts" : ObjectId("4ffd2a58e84c6f09779dc5cb"),
      			"when" : ISODate("2012-07-11T07:25:12.098Z"),
      			"who" : "bs-mm1.local:30000:1341991510:1982529625:conn19:594228950",
      			"why" : "migrate-{ num: MinKey }"
      		},
      		"errmsg" : "the collection metadata could not be locked with lock migrate-{ num: MinKey }",
      		"ok" : 0
      	},
      	"ok" : 0,
      	"errmsg" : "move failed"
      }
      } failed: {
      failed to load: /Users/yellow/buildslave/OS_X_105_64bit_DUR_OFF/mongo/jstests/sharding/sync2.js

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: