[GODRIVER-753] Change GridFS implementation to not have partial chunks Created: 07/Jan/19  Updated: 28/Oct/23  Resolved: 15/Jan/19

Status: Closed
Project: Go Driver
Component/s: GridFS
Affects Version/s: None
Fix Version/s: 0.3.0

Type: Improvement Priority: Minor - P4
Reporter: Devin Hilly (Inactive) Assignee: Divjot Arora (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Our original GridFS implementation only allowed the last chunk in an upload or download stream to have length < chunkSize. We removed this requirement in GODRIVER-724 because there were a few bugs related to this, and it made fixing them easier. We should add this back in for better performances and spec compliance.



 Comments   
Comment by Githook User [ 15/Jan/19 ]

Author:

{'username': 'divjotarora', 'email': 'divjot.arora@10gen.com', 'name': 'Divjot Arora'}

Message: Disallow partial intermediate chunks for GridFS.

GODRIVER-753

Change-Id: I07b2b6a05f07fa7ed86ffc881e9634d562df8a1f
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/422ba92f7d4e819d4f08b95ab7ca067f9612d437

Comment by Jeffrey Yemin [ 09/Jan/19 ]

This is high priority: currently the driver is creating GridFS files that can not be read by any other driver (include a future Go driver that contains a fix for this issue).

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