[SERVER-6223] _id strangeness on sharded collection Created: 27/Jun/12  Updated: 15/Oct/12  Resolved: 03/Oct/12

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 2.0.6
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Sergey Chvalyuk Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

mongodb-linux-i686-2.0.6


Operating System: Linux
Participants:

 Description   

mongos> use bug
switched to db bug
mongos> db.t.insert(

{'_id':[1,2,3]}

)
_id cannot be an array

mongos> use admin
switched to db admin
mongos> db.runCommand(

{ enablesharding : "bug" }

);

{ "ok" : 1 }

mongos> db.runCommand( { shardcollection : "bug.s", key :

{ _id : 1 }

} )

{ "collectionsharded" : "bug.s", "ok" : 1 }

mongos> use bug
switched to db bug
mongos> db.s.insert(

{'_id':[1,2,3]}

)
mongos> db.s.find()

{ "_id" : ObjectId("4feb209a465c15a3483518f7"), "_id" : ObjectId("4feb209a465c15a3483518f7") }

 Comments   
Comment by Eliot Horowitz (Inactive) [ 03/Oct/12 ]

duplicate of SERVER-6490

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