-
Type: Improvement
-
Resolution: Fixed
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: GridFS
-
None
-
When an upload to GridFS fails due to a write error, the driver will now delete those chunks that have already been uploaded. Previously the driver would only delete the uploaded chunks if the upload failed due to a read error.
-
Minor Change
GridFS currently, when it is writing a file and a read of the input fails, removes the chunks that have already been written prior to propagating the read exception to the application. It seems sensible to also remove the chunks that have been written if there is a network error on the writing side.