[GODRIVER-901] Race detector flagged race Created: 24/Mar/19 Updated: 28/Oct/23 Resolved: 29/Mar/19 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | Options & Configuration |
| Affects Version/s: | 1.0.0 |
| Fix Version/s: | 1.0.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Matt Zimmerman | Assignee: | Kristofer Brandow (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
archlinux 5.0.x kernel, Go 1.12 |
||
| Description |
|
Race condition flagged by race detector. I believed the mongo connection was safe for concurrent use.
WARNING: DATA RACE
Previous write at 0x00c000021080 by goroutine 1285: |
| Comments |
| Comment by Githook User [ 29/Mar/19 ] |
|
Author: {'email': 'kris@mongodb.com', 'name': 'Kris Brandow', 'username': 'skriptble'}Message: Fix race condition with handshaker for connections Change-Id: I4a41bff911bd6115c0de988f91dab3940f99c07c |
| Comment by Matt Zimmerman [ 28/Mar/19 ] |
|
@kris brandow – success! Thanks for the quick turnaround. |
| Comment by Kristofer Brandow (Inactive) [ 27/Mar/19 ] |
|
Hi mzimmerman, Can you test with the patch I linked to in the previous comment and see if you are still getting tripping up the race detector? --Kris |
| Comment by Kristofer Brandow (Inactive) [ 27/Mar/19 ] |
|
Code Review: https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/449349. |
| Comment by Matt Zimmerman [ 24/Mar/19 ] |
|
I thought this might be my issue, but I don't see anything in the docs that I'm not following. |