[SERVER-5802] uncaught exception building index on empty collection in shard_keycount.js Created: 09/May/12  Updated: 15/Aug/12  Resolved: 29/May/12

Status: Closed
Project: Core Server
Component/s: Index Maintenance, Sharding
Affects Version/s: None
Fix Version/s: None

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

Operating System: ALL
Participants:

 Description   

 m30001| Wed May  9 04:55:45 [conn3] build index test.foo { _id: 1 }
 m30001| Wed May  9 04:55:45 [conn3] build index done.  scanned 0 total records. 0 secs
 m30001| Wed May  9 04:55:45 [conn3] insert test.foo keyUpdates:0 1193ms
 m30001| Wed May  9 04:55:45 [FileAllocator] allocating new datafile /data/db/shard_keycount1/test.1, filling with zeroes...
Wed May  9 04:55:45 uncaught exception: command { "shardcollection" : "test.foo", "key" : { "_id" : 1 } } failed: {
	"proposedKey" : {
		"_id" : 1
	},
	"curIndexes" : [ ],
	"ok" : 0,
	"errmsg" : "please create an index over the sharding key before sharding."
}
failed to load: /mnt/slaves/Linux_32bit_Nightly/mongo/jstests/sharding/shard_keycount.js

http://buildbot.mongodb.org/builders/Nightly%20Linux%2032-bit/builds/912/steps/test_9/logs/stdio


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