Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

database/sql: need to establish a common wait time to return conns to pool #18759

kardianos opened this issue Jan 23, 2017 · 1 comment


Copy link

@kardianos kardianos commented Jan 23, 2017


both mips hosts.

from arm.

--- FAIL: TestQueryContext (0.01s)
	sql_test.go:330: free conns after query hitting EOF = 0; want 1
	sql_test.go:156: 1 connections still open after closing DB
FAIL	database/sql	0.901s

I don't think this is a critical issue in the sql code itself. I think this is an issue in how the test is implemented. The check for number of conns in the DB pool has often been an issue when constructing the test. Due to how the conn pool is constructed (uses non-blocking channels internally) it is not deterministic in the behavior.

This may not be go1.8 worthy.

@kardianos kardianos self-assigned this Jan 23, 2017
Copy link

@gopherbot gopherbot commented Jan 25, 2017

CL mentions this issue.

@gopherbot gopherbot closed this in 165cfbc Jan 25, 2017
@golang golang locked and limited conversation to collaborators Jan 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.