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

Downloading big files from gridfs ends with ErrWrongSize

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.0.3
    • Affects Version/s: 1.0.1
    • Component/s: GridFS
    • Environment:
      mongodb 3.6.12
      ubuntu 18.04

      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.

        1. main.go
          2 kB
          Sławomir Chmiel

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

              Created:
              Updated:
              Resolved: