Downloading big files from gridfs ends with ErrWrongSize

XMLWordPrintableJSON

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

      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.

              Assignee:
              Emmanuel Eppinger (Inactive)
              Reporter:
              Sławomir Chmiel
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: