[DRIVERS-1624] Prevent GridFS cursors from timing out during download Created: 24/Mar/21  Updated: 31/Mar/22

Status: Backlog
Project: Drivers
Component/s: GridFS
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Divjot Arora (Inactive) Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to GODRIVER-1925 GridFS downloads incorrectly swallow ... Closed
Driver Changes: Needed

 Description   

A Go Driver user has found that download a large file using GridFS results in a CursorNotFound error if their application requires more than 10 minutes to process the first 16MB of the file. The GridFS spec only allows setting the batchSize and noCursorTimeout options for the Generic Find on Files Collection API, not the downloadToStream/openDownloadStream APIs. Can we mitigate this issue by setting noCursorTimeout for the find on the chunks collection? The cursor would still time out after logicalSessionTimeoutMinutes, but it's better than 10 minutes and retains the "stream" abstraction without exposing cursor-specific details in the API.


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