[SERVER-6742] fileObj hashes not matching on insert in gridfs.js Created: 09/Aug/12  Updated: 11/Jul/16  Resolved: 09/Aug/12

Status: Closed
Project: Core Server
Component/s: GridFS, Testing Infrastructure
Affects Version/s: None
Fix Version/s: 2.0.8, 2.2.0-rc1

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

Attachments: HTML File gridfs_output.html    
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

http://buildlogs.mongodb.org/build/502362d6d2a60f70cd0001d5/test/5023b5fbd2a60f5e97000337/

	
sh2120| added file: { _id: ObjectId('5023b60dbebcdb51f55100d1'), filename: "mongod.exe", chunkSize: 262144, uploadDate: new Date(1344517661822), md5: "ee4f03d9e587d723c4c6bb99531b3b30", length: 20939264 }
 m30999| Thu Aug 09 13:07:42 [conn5] end connection 127.0.0.1:50880 (1 connection now open)
fileObj: {
	"_id" : ObjectId("5023b60dbebcdb51f55100d1"),
	"filename" : "mongod.exe",
	"chunkSize" : 262144,
	"uploadDate" : ISODate("2012-08-09T13:07:41.822Z"),
	"md5" : "ee4f03d9e587d723c4c6bb99531b3b30",
	"length" : 20939264
sh2120| done!
assert: ["4c933cd6fa8b299c8f87c96b06aaf38f"] != ["ee4f03d9e587d723c4c6bb99531b3b30"] are not equal : undefined
Error("Printing Stack Trace")@:0
()@src/mongo/shell/utils.js:37
("[\"4c933cd6fa8b299c8f87c96b06aaf38f\"] != [\"ee4f03d9e587d723c4c6bb99531b3b30\"] are not equal : undefined")@src/mongo/shell/utils.js:58
("4c933cd6fa8b299c8f87c96b06aaf38f","ee4f03d9e587d723c4c6bb99531b3b30")@src/mongo/shell/utils.js:88
testGridFS("sharded_files_id_n")@D:\slave\Windows_64bit_DEBUG\mongo\jstests\sharding\gridfs.js:27
@D:\slave\Windows_64bit_DEBUG\mongo\jstests\sharding\gridfs.js:59
Thu Aug 09 13:07:42 uncaught exception: ["4c933cd6fa8b299c8f87c96b06aaf38f"] != ["ee4f03d9e587d723c4c6bb99531b3b30"] are not equal : undefined
failed to load: D:\slave\Windows_64bit_DEBUG\mongo\jstests\sharding\gridfs.js



 Comments   
Comment by auto [ 15/Oct/12 ]

Author:

{u'date': u'2012-08-09T13:11:41-07:00', u'name': u'Spencer T Brody', u'email': u'spencer@10gen.com'}

Message: Make C++ driver call GLE after storing gridFS chunks, before calling filemd5. SERVER-6742

This ensures that there are no pending writebacks from the chunks being inserted.
Branch: v2.0
https://github.com/mongodb/mongo/commit/5eaf375b0c9e6fef220e71916e83c3c3e265158f

Comment by auto [ 09/Aug/12 ]

Author:

{u'date': u'2012-08-09T13:11:41-07:00', u'email': u'spencer@10gen.com', u'name': u'Spencer T Brody'}

Message: Make C++ driver call GLE after storing gridFS chunks, before calling filemd5. SERVER-6742

This ensures that there are no pending writebacks from the chunks being inserted.
Branch: master
https://github.com/mongodb/mongo/commit/33bb2435347e1b5423c05c521e8106b65b0e411b

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