We are running load test with MongoDB V3.2.11 and below mentioned error is thrown when reading the binary file from GridFS.
Size of binary file is 2 GB.
Type:InvalidOperationException,Message:Sequence contains no elements 場所 System.Linq.Enumerable.Last[TSource](IEnumerable`1 source) 場所 MongoDB.Driver.GridFS.GridFSForwardOnlyDownloadStream`1.GetNextBatchFromCursor(Boolean hasMore) 場所 MongoDB.Driver.GridFS.GridFSForwardOnlyDownloadStream`1.GetFirstBatch(CancellationToken cancellationToken) 場所 MongoDB.Driver.GridFS.GridFSForwardOnlyDownloadStream`1.GetSegment(CancellationToken cancellationToken) 場所 MongoDB.Driver.GridFS.GridFSForwardOnlyDownloadStream`1.Read(Byte[] buffer, Int32 offset, Int32 count)
We are using below code for downloading the binary file
documentBucket.OpenDownloadStream(file.Id, downloadOptions)
Do you have any clue about above error?
Thanks in advance.