This problem happened to me.
Sharding appears to be failed on a collection
("mongo.gridfs.file.chunks"), giving an
error: "want to split chunk, but can't find split point chunk",
log:
un Oct 9 11:00:18 [Balancer] forced split results: {}
Sun Oct 9 11:00:18 [Balancer] distributed lock 'balancer/
test10:27000:1318124739:1804289383' unlocked.
Sun Oct 9 11:00:28 [Balancer] distributed lock 'balancer/
test10:27000:1318124739:1804289383' acquired, ts :
4e910e4cad9b95b90ea04d72
Sun Oct 9 11:00:28 [Balancer] chose [shard0000] to [shard0002] { _id:
"mongo.gridfs.file.chunks-
files_id_ObjectId('4e90fde1dffef339cede7fee')", lastmod: Timestamp
2000|2, ns: "mongo.gridfs.file.chunks", min: { files_id:
ObjectId('4e90fde1dffef339cede7fee') }, max: { files_id:
ObjectId('4e91001cdffe608bb3f98baf') }, shard: "shard0000" }
Sun Oct 9 11:00:28 [Balancer] moving chunk ns:
mongo.gridfs.file.chunks moving ( ns:mongo.gridfs.file.chunks at:
shard0000:localhost:21100 lastmod: 2|2 min: { files_id:
ObjectId('4e90fde1dffef339cede7fee') } max: { files_id:
ObjectId('4e91001cdffe608bb3f98baf') }) shard0000:localhost:21100 ->
shard0002:localhost:23300
Sun Oct 9 11:00:28 [Balancer] moveChunk result: { chunkTooBig: true,
estimatedChunkSize: 432819556, errmsg: "chunk too big to move", ok:
0.0 }
Sun Oct 9 11:00:28 [Balancer] balancer move failed: { chunkTooBig:
true, estimatedChunkSize: 432819556, errmsg: "chunk too big to move",
ok: 0.0 } from: shard0000 to: shard0002 chunk: { _id:
"mongo.gridfs.file.chunks-
files_id_ObjectId('4e90fde1dffef339cede7fee')", lastmod: Timestamp
2000|2, ns: "mongo.gridfs.file.chunks", min: { files_id:
ObjectId('4e90fde1dffef339cede7fee') }, max: { files_id:
ObjectId('4e91001cdffe608bb3f98baf') }, shard: "shard0000" }
Sun Oct 9 11:00:28 [Balancer] forcing a split because migrate failed
for size reasons
Sun Oct 9 11:00:28 [Balancer] want to split chunk, but can't find
split point chunk ns:mongo.gridfs.file.chunks at: shard0000:localhost:
21100 lastmod: 2|2 min: { files_id:
ObjectId('4e90fde1dffef339cede7fee') } max: { files_id:
ObjectId('4e91001cdffe608bb3f98baf') } got: <empty>
Sun Oct 9 11:00:28 [Balancer] forced split results: {}
Sun Oct 9 11:00:28 [Balancer] distributed lock 'balancer/
test10:27000:1318124739:1804289383' unlocked.
Sun Oct 9 11:00:38 [Balancer] distributed lock 'balancer/
test10:27000:1318124739:1804289383' acquired, ts :
4e910e56ad9b95b90ea04d73
Sun Oct 9 11:00:38 [Balancer] chose [shard0000] to [shard0002] { _id:
"mongo.gridfs.file.chunks-
files_id_ObjectId('4e90fde1dffef339cede7fee')", lastmod: Timestamp
2000|2, ns: "mongo.gridfs.file.chunks", min: { files_id:
ObjectId('4e90fde1dffef339cede7fee') }, max: { files_id:
ObjectId('4e91001cdffe608bb3f98baf') }, shard: "shard0000" }
Sun Oct 9 11:00:38 [Balancer] moving chunk ns:
mongo.gridfs.file.chunks moving ( ns:mongo.gridfs.file.chunks at:
shard0000:localhost:21100 lastmod: 2|2 min: { files_id:
ObjectId('4e90fde1dffef339cede7fee') } max: { files_id:
ObjectId('4e91001cdffe608bb3f98baf') }) shard0000:localhost:21100 ->
shard0002:localhost:23300
Sun Oct 9 11:00:38 [Balancer] moveChunk result: { chunkTooBig: true,
estimatedChunkSize: 432819556, errmsg: "chunk too big to move", ok:
0.0 }
Sun Oct 9 11:00:38 [Balancer] balancer move failed: { chunkTooBig:
true, estimatedChunkSize: 432819556, errmsg: "chunk too big to move",
ok: 0.0 } from: shard0000 to: shard0002 chunk: { _id:
"mongo.gridfs.file.chunks-
files_id_ObjectId('4e90fde1dffef339cede7fee')", lastmod: Timestamp
2000|2, ns: "mongo.gridfs.file.chunks", min: { files_id:
ObjectId('4e90fde1dffef339cede7fee') }, max: { files_id:
ObjectId('4e91001cdffe608bb3f98baf') }, shard: "shard0000" }
Sun Oct 9 11:00:38 [Balancer] forcing a split because migrate failed
for size reasons
Sun Oct 9 11:00:38 [Balancer] want to split chunk, but can't find
split point chunk ns:mongo.gridfs.file.chunks at: shard0000:localhost:
21100 lastmod: 2|2 min: { files_id:
ObjectId('4e90fde1dffef339cede7fee') } max: { files_id:
ObjectId('4e91001cdffe608bb3f98baf') } got: <empty>
Sun Oct 9 11:00:38 [Balancer] forced split results: {}
Sun Oct 9 11:00:38 [Balancer] distributed lock 'balancer/
test10:27000:1318124739:1804289383' unlocked.
sharding status:
mongos> db.printShardingStatus()
--- Sharding Status ---
sharding version: { "_id" : 1, "version" : 3 }
shards:
{ "_id" : "shard0000", "host" : "localhost:21100",
"maxSize" : NumberLong(10000) }
{ "_id" : "shard0001", "host" : "localhost:22200",
"maxSize" : NumberLong(10000) }
{ "_id" : "shard0002", "host" : "localhost:23300",
"maxSize" : NumberLong(10000) }
databases:
{ "_id" : "admin", "partitioned" : false, "primary" :
"config" }
{ "_id" : "mongo", "partitioned" : true, "primary" :
"shard0000" }
mongo.gridfs.file.chunks chunks:
shard0001 1
shard0000 11
{ "files_id" : { $minKey : 1 } } -->>
{ "files_id" : ObjectId("4e90fde1dffef339cede7fee") } on : shard0001
{ "t" : 2000, "i" : 0 }
{ "files_id" :
ObjectId("4e90fde1dffef339cede7fee") } -->> { "files_id" :
ObjectId("4e91001cdffe608bb3f98baf") } on : shard0000 { "t" : 2000,
"i" : 2 }
{ "files_id" :
ObjectId("4e91001cdffe608bb3f98baf") } -->> { "files_id" :
ObjectId("4e91009cdffeade5b4498957") } on : shard0000 { "t" : 2000,
"i" : 3 }
{ "files_id" :
ObjectId("4e91009cdffeade5b4498957") } -->> { "files_id" :
ObjectId("4e9101b3dffed5c07438a477") } on : shard0000 { "t" : 1000,
"i" : 5 }
{ "files_id" :
ObjectId("4e9101b3dffed5c07438a477") } -->> { "files_id" :
ObjectId("4e910225dffed5c07438b15f") } on : shard0000 { "t" : 1000,
"i" : 7 }
{ "files_id" :
ObjectId("4e910225dffed5c07438b15f") } -->> { "files_id" :
ObjectId("4e9102badffed5c07438be47") } on : shard0000 { "t" : 1000,
"i" : 9 }
{ "files_id" :
ObjectId("4e9102badffed5c07438be47") } -->> { "files_id" :
ObjectId("4e91037edffe8736e9f0f2d4") } on : shard0000 { "t" : 1000,
"i" : 11 }
{ "files_id" :
ObjectId("4e91037edffe8736e9f0f2d4") } -->> { "files_id" :
ObjectId("4e9104e1dffe8736e9f0ffbc") } on : shard0000 { "t" : 1000,
"i" : 13 }
{ "files_id" :
ObjectId("4e9104e1dffe8736e9f0ffbc") } -->> { "files_id" :
ObjectId("4e91059edffe8736e9f10ca4") } on : shard0000 { "t" : 1000,
"i" : 15 }
{ "files_id" :
ObjectId("4e91059edffe8736e9f10ca4") } -->> { "files_id" :
ObjectId("4e910658dffe8736e9f1198c") } on : shard0000 { "t" : 1000,
"i" : 17 }
{ "files_id" :
ObjectId("4e910658dffe8736e9f1198c") } -->> { "files_id" :
ObjectId("4e91072cdffe8736e9f12674") } on : shard0000 { "t" : 1000,
"i" : 19 }
{ "files_id" :
ObjectId("4e91072cdffe8736e9f12674") } -->> { "files_id" : { $maxKey :
1 } } on : shard0000 { "t" : 1000, "i" : 20 }
db stats:
mongos> db.stats()
{
"raw" : {
"localhost:21100" : {
"db" : "mongo",
"collections" : 4,
"objects" : 33053,
"avgObjSize" : 261894.77142770702,
"dataSize" :
8656407880,
"storageSize" : 10330087424,
"numExtents" : 38,
"indexes" : 5,
"indexSize" : 3572912,
"fileSize" : 17105420288,
"nsSizeMB" : 16,
"ok" : 1
},
"localhost:22200" : {
"db" : "mongo",
"collections" : 3,
"objects" : 8,
"avgObjSize" : 64,
"dataSize" : 512,
"storageSize" : 20480,
"numExtents" : 3,
"indexes" : 3,
"indexSize" : 24528,
"fileSize" : 201326592,
"nsSizeMB" : 16,
"ok" : 1
}
},
"objects" : 33061,
"avgObjSize" : 261831.
4144157769,
"dataSize" :
8656408392,
"storageSize" : 10330107904,
"numExtents" : 41,
"indexes" : 8,
"indexSize" : 3597440,
"fileSize" :
17306746880,
"ok" : 1
There are 3 total shards without replica sets.
shard key is"{"files_id":1}"
Running mongo 2.0.0