[GODRIVER-1238] Closing a change stream without reading it returns an error Created: 19/Aug/19 Updated: 28/Oct/23 Resolved: 22/Aug/19 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | CRUD |
| Affects Version/s: | 1.1.0 |
| Fix Version/s: | 1.1.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Pierre Durand | Assignee: | Isabella Siu (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Go 1.13beta1 |
||
| Attachments: |
|
| Backwards Compatibility: | Fully Compatible |
| Description |
|
See the attached code. If you close a change stream without reading it, it returns the error "ended session was used". It happens only since v1.1.0. I can't reproduce it with v1.0.4 |
| Comments |
| Comment by Githook User [ 08/Oct/19 ] |
|
Author: {'username': 'divjotarora', 'email': 'divjot.arora@10gen.com', 'name': 'Divjot Arora'}Message: Support looser extended JSON datetime format. (#187)
|
| Comment by Githook User [ 22/Aug/19 ] |
|
Author: {'username': 'iwysiu', 'email': 'isabella.siu@10gen.com', 'name': 'iwysiu'}Message: Change-Id: Ic366961626eb469d39d3bc10b9675d8e3331274e |
| Comment by Isabella Siu (Inactive) [ 21/Aug/19 ] |
|
code review url: https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/465962 |
| Comment by Kristofer Brandow (Inactive) [ 19/Aug/19 ] |
|
Hi pierrre, Thanks for reporting this, it appears that we are closing the implicit session that we are about to use to close the cursor. I'll schedule this to be fixed. --Kris |