[SERVER-6397] moveChunk fails because metadata collection could not be locked Created: 11/Jul/12  Updated: 11/Jul/16  Resolved: 11/Jul/12

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 2.0.8, 2.2.0-rc0

Type: Bug Priority: Major - P3
Reporter: Ian Whalen (Inactive) Assignee: Greg Studer
Resolution: Done Votes: 0
Labels: buildbot
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 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



 Comments   
Comment by auto [ 16/Oct/12 ]

Author:

{u'date': u'2012-10-15T23:08:04-07:00', u'email': u'dan@10gen.com', u'name': u'Dan Pasette'}

Message: SERVER-6397 fix backport by stopping balancer without helper
Branch: v2.0
https://github.com/mongodb/mongo/commit/7577f95c80f8f22b7a3c61f0683ee120f6fb1e59

Comment by auto [ 15/Oct/12 ]

Author:

{u'date': u'2012-07-11T07:12:46-07:00', u'name': u'gregs', u'email': u'greg@10gen.com'}

Message: SERVER-6397 buildbot sync2.js turn off balancer before doing manual chunk moves
Branch: v2.0
https://github.com/mongodb/mongo/commit/86b6b474a8ae8798d8a4d9edf97234b33f84e11c

Comment by auto [ 11/Jul/12 ]

Author:

{u'date': u'2012-07-11T07:12:46-07:00', u'name': u'gregs', u'email': u'greg@10gen.com'}

Message: SERVER-6397 buildbot sync2.js turn off balancer before doing manual chunk moves
Branch: master
https://github.com/mongodb/mongo/commit/458f0fbfeb27ca8348289dfdd15da2627d309c0b

Comment by Greg Studer [ 11/Jul/12 ]

http://buildbot.mongodb.org/builders/OS%20X%2010.5%2064-bit%20DUR%20OFF/builds/1217/steps/test_12/logs/stdio/text

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