[GODRIVER-1247] connection leak with change stream Created: 22/Aug/19 Updated: 28/Oct/23 Resolved: 04/Sep/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: | Michael O'Brien | Assignee: | Alice Thum |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Using the latest, when creating change streams with Watch(), it looks like connections may be getting leaked.
When the code gets into the sleep loop at the end, there are lots of connections still open against the server. Running the same code using an older version of the driver results in the connection count going back down. Using git bisect, it looks like the change in behavior was introduced in df0f8c44059d04f60f45ebc8510065d4357cb408 |
| Comments |
| Comment by Githook User [ 05/Sep/19 ] |
|
Author: {'email': 'alice.thum@10gen.com', 'name': 'Alice Thum'}Message: Close connections in executeOperation. Change-Id: Icf35cbb89050bec1b08833d57942cd08d4e9460e |
| Comment by Alice Thum [ 04/Sep/19 ] |
|
commit link: https://github.com/mongodb/mongo-go-driver/commit/7b15653fa692979af75c4d4ca512b7df58873d28 |
| Comment by Githook User [ 04/Sep/19 ] |
|
Author: {'email': 'alice.thum@10gen.com', 'name': 'Alice Thum'}Message: Close connections in executeOperation. Change-Id: Icf35cbb89050bec1b08833d57942cd08d4e9460e |
| Comment by Alice Thum [ 04/Sep/19 ] |
|
gerrithub link: https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/467299 |