Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-1219

GridFSBucketReadStream `doRead` does not honor chunk size

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 2.2.33
    • 3.2.4
    • MongoDB 3.2

    Description

      gridfs-stream\download.js
      When using the GridFSBucket.openDownloadStream to read the data of the specified segment,for example, there is a file size of 2547447 bytes in the gridfs,the chunksize is 1024*1024,I use openDownloadStream(fileid,

      {start:1732608,end:1733632}

      ) want get 1024 bytes,but return 364544 bytes.I find the error came from function doRead,I fix it then it's ok.

      Attachments

        Activity

          People

            katherine.walker@mongodb.com Katherine Walker (Inactive)
            sun sunsummit
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: