Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-1012

Downloading big files from gridfs ends with ErrWrongSize

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 1.0.3
    • 1.0.1
    • GridFS
    • mongodb 3.6.12
      ubuntu 18.04

    Description

      See attached main.go file:

      • it stored 3221225472 bytes of random data to the database
      • then it tries to load all those save data to see if the write size is equal to the read size
      • read ends at 3221176320 bytes with ErrWrongSize

      Java client correctly reads all the data so it looks like the issue is in the GO DownloadStream. For smaller size, ~2GB it works fine - read ends with EOF and all data is read.

      Attachments

        Activity

          People

            manny.eppinger@mongodb.com Emmanuel Eppinger (Inactive)
            schm Sławomir Chmiel
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: