[GODRIVER-1013] When reading whole file at once next read doesn't return EOF Created: 01/May/19 Updated: 28/Oct/23 Resolved: 13/Jun/19 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | GridFS |
| Affects Version/s: | 1.0.1 |
| Fix Version/s: | 1.0.4 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Sławomir Chmiel | Assignee: | Emmanuel Eppinger (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
mongodb 3.6.12 |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
See attached main.go file:
I would expect that second call of Read should return (0, EOF) as the first one already read all the data. |
| Comments |
| Comment by Githook User [ 14/Jun/19 ] |
|
Author: {'name': 'Emmanuel', 'email': 'manny.eppinger@mongodb.com', 'username': 'eppingere'}Message: Next read after read full file returns EOF Fix bug in DownloadStream and add RoundTrip tabular tests that test Change-Id: I73777b5b422fdf0bfdee344fb08c2f686940ccd8 |
| Comment by Githook User [ 13/Jun/19 ] |
|
Author: {'name': 'Emmanuel', 'email': 'manny.eppinger@mongodb.com', 'username': 'eppingere'}Message: Next read after read full file returns EOF Fix bug in DownloadStream and add RoundTrip tabular tests that test Change-Id: I73777b5b422fdf0bfdee344fb08c2f686940ccd8 |
| Comment by Emmanuel Eppinger (Inactive) [ 13/Jun/19 ] |
|
https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/457658 |