Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(40)

Issue 14780043: code review 14780043: database/sql: Fix deadlock in test (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 6 months ago by Hierro
Modified:
11 years, 6 months ago
Reviewers:
bradfitz
CC:
golang-dev, bradfitz
Visibility:
Public.

Description

database/sql: Fix deadlock in test New test added in CL 14611045 causes a deadlock when running the tests with GOMAXPROCS > 1 because the fakedb driver always waits when opening a new connection after running TestConnectionLeak.

Patch Set 1 #

Patch Set 2 : diff -r c67a1d0df694 https://code.google.com/p/go #

Patch Set 3 : diff -r c67a1d0df694 https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -0 lines) Patch
M src/pkg/database/sql/fakedb_test.go View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 3
Hierro
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
11 years, 6 months ago (2013-10-17 14:23:10 UTC) #1
bradfitz
LGTM I'll tweak the commit message for accuracy when submitting. On Thu, Oct 17, 2013 ...
11 years, 6 months ago (2013-10-17 16:02:08 UTC) #2
bradfitz
11 years, 6 months ago (2013-10-17 16:02:39 UTC) #3
*** Submitted as https://code.google.com/p/go/source/detail?r=b3d719b62cfb ***

database/sql: make tests repeatable with -cpu=n,n

New test added in CL 14611045 causes a deadlock when
running the tests with -cpu=n,n because the fakedb
driver always waits when opening a new connection after
running TestConnectionLeak.  Reset its state after.

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/14780043

Committer: Brad Fitzpatrick <bradfitz@golang.org>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b