[SERVER-1347] Using $set with large integer Created: 02/Jul/10  Updated: 12/Jul/16  Resolved: 26/Aug/10

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 1.4.4
Fix Version/s: 1.7.0

Type: Bug Priority: Minor - P4
Reporter: Kyle Banker Assignee: Kristina Chodorow (Inactive)
Resolution: Done Votes: 3
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-1782 Data loss after $set Closed
Operating System: ALL
Participants:

 Description   

> db.contacts.update(

{"profile-id" : "test"}

, {$set: {"actual.0020000000000000000000": "val5"}})
> db.contacts.find(

{ "profile-id": "test"}

)
{ "_id" : ObjectId("4c2db755f6ec25d0c44c466a"), "actual" :

{ "key1" : "val1", "key2" : "val2", "001" : "val3", "002" : "val4", "0020000000000000000000" : "val5" }

, "profile-id" : "test" }

> db.contacts.update(

{"profile-id" : "test"}

, {$set: {"actual.0030000000000000000000": "val6"}})
> db.contacts.find(

{ "profile-id": "test"}

)
{ "_id" : ObjectId("4c2db755f6ec25d0c44c466a"), "actual" :

{ "key1" : "val1", "key2" : "val2", "001" : "val3", "002" : "val4", "0030000000000000000000" : "val6" }

, "profile-id" : "test" }
--------------

All working right, except last operation. As you see at last step key
"0020000000000000000000" was removed, and was replaced by
"0030000000000000000000".



 Comments   
Comment by auto [ 03/Nov/10 ]

Author:

{'login': '', 'name': 'Kristina Chodorow', 'email': 'k@ubuntu.(none)'}

Message: more tests for SERVER-1347
/mongodb/mongo/commit/7d31376cc33c2971b3866609afd9703fddd44b9c

Comment by auto [ 03/Nov/10 ]

Author:

{'login': '', 'name': 'Kristina Chodorow', 'email': 'k@ubuntu.(none)'}

Message: fix set with large ints SERVER-1347
/mongodb/mongo/commit/0c92fea8d7cb5c2807ec5ccad140b18d04cdee10

Comment by auto [ 26/Aug/10 ]

Author:

{'login': '', 'name': 'Kristina Chodorow', 'email': 'k@ubuntu.(none)'}

Message: more tests for SERVER-1347
http://github.com/mongodb/mongo/commit/47114280a49ac50ad4afa3ab942ad28722036da9

Comment by auto [ 26/Aug/10 ]

Author:

{'login': '', 'name': 'Kristina Chodorow', 'email': 'k@ubuntu.(none)'}

Message: fix set with large ints SERVER-1347
http://github.com/mongodb/mongo/commit/135549ec78e6b7f01c50aacca080d75af9df5b12

Comment by Igor Artamonov [ 11/Aug/10 ]

affects version 1.6.0 too

Comment by Igor Artamonov [ 03/Jul/10 ]

Not reproduced on mongo 1.2.4

Comment by Igor Artamonov [ 02/Jul/10 ]

Full log at http://groups.google.com/group/mongodb-user/browse_thread/thread/9044fe0fccf24079

Generated at Thu Feb 08 02:56:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.