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

Issue 7314057: code review 7314057: log/syslog: fix channel race in test. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 1 month ago by remyoudompheng
Modified:
13 years, 1 month ago
CC:
golang-dev, minux1, iant, bradfitz, dave_cheney.net
Visibility:
Public.

Description

log/syslog: fix channel race in test.

Patch Set 1 #

Patch Set 2 : diff -r c224c490576b https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r c224c490576b https://go.googlecode.com/hg/ #

Total comments: 1

Patch Set 4 : diff -r aceba1ebb946 https://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 5 : diff -r aceba1ebb946 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -9 lines) Patch
M src/pkg/log/syslog/syslog_test.go View 1 2 3 4 10 chunks +18 lines, -9 lines 0 comments Download

Messages

Total messages: 20
remyoudompheng
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 1 month ago (2013-02-08 07:19:23 UTC) #1
minux1
See also CL 7311052.
13 years, 1 month ago (2013-02-08 07:25:55 UTC) #2
iant
https://codereview.appspot.com/7314057/diff/4001/src/pkg/log/syslog/syslog_test.go File src/pkg/log/syslog/syslog_test.go (right): https://codereview.appspot.com/7314057/diff/4001/src/pkg/log/syslog/syslog_test.go#newcode57 src/pkg/log/syslog/syslog_test.go:57: wg.Add(1) It seems to me that if we're going ...
13 years, 1 month ago (2013-02-08 14:29:26 UTC) #3
remyoudompheng
Hello golang-dev@googlegroups.com, minux.ma@gmail.com, iant@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 1 month ago (2013-02-13 19:56:31 UTC) #4
bradfitz
LGTM On Wed, Feb 13, 2013 at 11:56 AM, <remyoudompheng@gmail.com> wrote: > Hello golang-dev@googlegroups.com, minux.ma@gmail.com, ...
13 years, 1 month ago (2013-02-13 19:59:04 UTC) #5
iant
https://codereview.appspot.com/7314057/diff/7001/src/pkg/log/syslog/syslog_test.go File src/pkg/log/syslog/syslog_test.go (right): https://codereview.appspot.com/7314057/diff/7001/src/pkg/log/syslog/syslog_test.go#newcode59 src/pkg/log/syslog/syslog_test.go:59: defer wg.Done() I would be more comfortable if we ...
13 years, 1 month ago (2013-02-13 20:47:56 UTC) #6
remyoudompheng
Hello golang-dev@googlegroups.com, minux.ma@gmail.com, iant@golang.org, bradfitz@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 1 month ago (2013-02-13 23:05:29 UTC) #7
remyoudompheng
https://codereview.appspot.com/7314057/diff/7001/src/pkg/log/syslog/syslog_test.go File src/pkg/log/syslog/syslog_test.go (right): https://codereview.appspot.com/7314057/diff/7001/src/pkg/log/syslog/syslog_test.go#newcode59 src/pkg/log/syslog/syslog_test.go:59: defer wg.Done() On 2013/02/13 20:47:56, iant wrote: > I ...
13 years, 1 month ago (2013-02-13 23:05:41 UTC) #8
dave_cheney.net
LGTM. Thank you to everyone for fixing this race.
13 years, 1 month ago (2013-02-13 23:38:02 UTC) #9
dave_cheney.net
Remy, are you able to commit this today. If you are unable too, I can ...
13 years, 1 month ago (2013-02-14 22:44:21 UTC) #10
dave_cheney.net
I will submit this on Remy's behalf. @fullung, can you please let me/us/someone know if ...
13 years, 1 month ago (2013-02-15 00:06:51 UTC) #11
dave_cheney.net
*** Submitted as https://code.google.com/p/go/source/detail?r=fdf84e3a0efe *** log/syslog: fix channel race in test. R=golang-dev, minux.ma, iant, bradfitz, ...
13 years, 1 month ago (2013-02-15 00:07:45 UTC) #12
dvyukov
I still see the panic (on Darwin *and* with some scheduler changes): $ go test ...
13 years, 1 month ago (2013-02-17 08:12:51 UTC) #13
dave_cheney.net
Bummer. If you do not intend to fix this yourself, would you please file an ...
13 years, 1 month ago (2013-02-17 08:22:41 UTC) #14
remyoudompheng
On 2013/2/17 <dvyukov@google.com> wrote: > I still see the panic (on Darwin *and* with some ...
13 years, 1 month ago (2013-02-17 10:00:39 UTC) #15
dvyukov
On Sun, Feb 17, 2013 at 2:00 PM, Rémy Oudompheng <remyoudompheng@gmail.com> wrote: > On 2013/2/17 ...
13 years, 1 month ago (2013-02-17 10:11:35 UTC) #16
dave_cheney.net
I'm not sure that any of the builders test with this option, not even @fullungs ...
13 years, 1 month ago (2013-02-17 10:17:47 UTC) #17
dvyukov
On Sun, Feb 17, 2013 at 2:00 PM, Rémy Oudompheng <remyoudompheng@gmail.com> wrote: > On 2013/2/17 ...
13 years, 1 month ago (2013-02-17 10:50:26 UTC) #18
albert.strasheim
Hello On Sunday, February 17, 2013 12:17:37 PM UTC+2, Dave Cheney wrote: > > I'm ...
13 years, 1 month ago (2013-02-17 18:31:56 UTC) #19
dvyukov
13 years, 1 month ago (2013-02-18 11:40:32 UTC) #20
On Sun, Feb 17, 2013 at 10:31 PM, Albert Strasheim <fullung@gmail.com> wrote:
> Hello
>
>
> On Sunday, February 17, 2013 12:17:37 PM UTC+2, Dave Cheney wrote:
>>
>> I'm not sure that any of the builders test with this option, not even
>> @fullungs torture test.
>
>
> For what it's worth, I currently run:
>
> for i in `seq 1 5`; do
> export GOMAXPROCS=$[ 1 + $[ RANDOM % 128 ]]
> ./run.bash --no-rebuild
> done
>
> go test -v -short -cpu 1,2,4 std
> go test -v -cpu 1,2,4 std
>
> for i in `seq 1 3`; do
> export GOMAXPROCS=$[ 1 + $[ RANDOM % 128 ]]
> time go test -v -race -short std
> done
>
> go test -v -race -short -cpu 1,2,4 std
>
> cpus=$[ 1 + $[ RANDOM % 32 ]] go test -v -race -run=XXX -bench=.*
> -benchtime=.1s -cpu=$cpus std
>
> I don't run:
>
> # not quite sure why... I think a few tests still take too long
> go test -v -race std
>
> #http://code.google.com/p/go/issues/detail?id=4703
> #http://code.google.com/p/go/issues/detail?id=4715
> go test -v -short -cpu 1,2,4 code.google.com/...
> go test -v -cpu 1,2,4 code.google.com/...
> go test -race -short -cpu 1,2,4 code.google.com/...
>
> It hasn't picked up this latest log/syslog issue. Just spotted this for the
> first time though:
>
> === RUN TestFreeOSMemory-4
> --- FAIL: TestFreeOSMemory-4 (0.00 seconds)
> garbage_test.go:85: released before=1048576; released after=1048576; did not
> go up

Here is the fix:
http://codereview.appspot.com/7319050
Sign in to reply to this message.

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