Priority: Major - P3
Resolution: Works as Designed
Affects Version/s: 2.4.8
Fix Version/s: None
Environment:Cluster on amazon cloud
3 config server-> t1.micro
2 mongos -> m1.medium
4 machines with each 4 shard -> m2.2xlarge
Operating system : AMAZON LINUX AMI
Mongodb version : 2.4.8
I am creating and sharding collections dynamically with the PHP driver every week in this case.
When executing the 'shardCollection' db command with my driver, this last returned an exception 'collection already sharded with 1 chunks'. When I take a look at it, the collection in cause (MO_3h.MO_2014_09) isn't sharded at all.
Here are some useful data :
When executing a second time the 'shardCollection' db command, everything went right.
This happened to me 3 times in 8 months.
On which info should I base myself to know if the collection has been sharded or not? The config of the collection or its stats?