Skip to content

Instantly share code, notes, and snippets.

@kols
Created May 28, 2015 10:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kols/2b9a41353d0bf423ae34 to your computer and use it in GitHub Desktop.
Save kols/2b9a41353d0bf423ae34 to your computer and use it in GitHub Desktop.
go test ./pkg/... ./cmd/... -race
? github.com/wandoulabs/codis/pkg/env [no test files]
2015/05/28 18:15:51 action_test.go:36: [info] test proxy offline when waiting action response 
2015/05/28 18:15:54 action.go:132: [error] proxies didn't responed: [3 1 2] 
2015/05/28 18:15:54 action.go:137: [error] mark proxy 3 to PROXY_STATE_MARK_OFFLINE
2015/05/28 18:15:54 proxy.go:192: [info] mark_offline, check proxy status: 3 &{3 0 offline 0 } <nil> 
2015/05/28 18:15:54 proxy.go:200: [info] proxy: 3 offline success! 
2015/05/28 18:15:54 action.go:137: [error] mark proxy 1 to PROXY_STATE_MARK_OFFLINE
2015/05/28 18:15:54 proxy.go:192: [info] mark_offline, check proxy status: 1 &{1 0 offline 0 } <nil> 
2015/05/28 18:15:54 proxy.go:200: [info] proxy: 1 offline success! 
2015/05/28 18:15:54 action.go:137: [error] mark proxy 2 to PROXY_STATE_MARK_OFFLINE
2015/05/28 18:15:54 proxy.go:192: [info] mark_offline, check proxy status: 2 &{2 0 offline 0 } <nil> 
2015/05/28 18:15:54 proxy.go:200: [info] proxy: 2 offline success! 
2015/05/28 18:15:54 action.go:359: [info] deleting.. /zk/codis/db_unit_test/LOCK/lock-0000000001 
panic: listen tcp 127.0.0.1:2222: bind: address already in use
goroutine 17 [running]:
github.com/wandoulabs/codis/pkg/models.runFakeRedisSrv(0x468fd0, 0xe)
/Users/kane/go/src/github.com/wandoulabs/codis/pkg/models/server_group_test.go:26 +0xb6
created by github.com/wandoulabs/codis/pkg/models.func·005
/Users/kane/go/src/github.com/wandoulabs/codis/pkg/models/server_group_test.go:46 +0x72
goroutine 1 [chan receive]:
testing.RunTests(0x50f808, 0x6385c0, 0x7, 0x7, 0x1)
/usr/local/opt/go/libexec/src/testing/testing.go:556 +0xdc3
testing.(*M).Run(0xc20802c5a0, 0x643540)
/usr/local/opt/go/libexec/src/testing/testing.go:485 +0xe1
main.main()
github.com/wandoulabs/codis/pkg/models/_test/_testmain.go:64 +0x28d
goroutine 15 [sleep]:
github.com/wandoulabs/codis/pkg/models.func·005()
/Users/kane/go/src/github.com/wandoulabs/codis/pkg/models/server_group_test.go:47 +0x81
sync.(*Once).Do(0x643f50, 0x50f7e8)
/usr/local/opt/go/libexec/src/sync/once.go:44 +0xe7
github.com/wandoulabs/codis/pkg/models.resetEnv()
/Users/kane/go/src/github.com/wandoulabs/codis/pkg/models/server_group_test.go:48 +0x260
github.com/wandoulabs/codis/pkg/models.TestAddSlaveToEmptyGroup(0xc20846b710)
/Users/kane/go/src/github.com/wandoulabs/codis/pkg/models/server_group_test.go:52 +0x3b
testing.tRunner(0xc20846b710, 0x638620)
/usr/local/opt/go/libexec/src/testing/testing.go:447 +0x134
created by testing.RunTests
/usr/local/opt/go/libexec/src/testing/testing.go:555 +0xd4e
goroutine 16 [IO wait]:
net.(*pollDesc).Wait(0xc208010140, 0x72, 0x0, 0x0)
/usr/local/opt/go/libexec/src/net/fd_poll_runtime.go:84 +0x63
net.(*pollDesc).WaitRead(0xc208010140, 0x0, 0x0)
/usr/local/opt/go/libexec/src/net/fd_poll_runtime.go:89 +0x51
net.(*netFD).accept(0xc2080100e0, 0x0, 0x10cda20, 0xc208465150)
/usr/local/opt/go/libexec/src/net/fd_unix.go:419 +0x4bd
net.(*TCPListener).AcceptTCP(0xc208400150, 0x0, 0x0, 0x0)
/usr/local/opt/go/libexec/src/net/tcpsock_posix.go:234 +0x80
net.(*TCPListener).Accept(0xc208400150, 0x0, 0x0, 0x0, 0x0)
/usr/local/opt/go/libexec/src/net/tcpsock_posix.go:244 +0x5a
github.com/wandoulabs/codis/pkg/models.runFakeRedisSrv(0x468fb0, 0xe)
/Users/kane/go/src/github.com/wandoulabs/codis/pkg/models/server_group_test.go:29 +0xcc
created by github.com/wandoulabs/codis/pkg/models.func·005
/Users/kane/go/src/github.com/wandoulabs/codis/pkg/models/server_group_test.go:45 +0x4c
goroutine 9 [chan receive]:
github.com/wandoulabs/codis/pkg/models.waitForProxyMarkOffline(0x10ce040, 0xc20801e100, 0xc20800ae88, 0x1)
/Users/kane/go/src/github.com/wandoulabs/codis/pkg/models/action_test.go:28 +0x1b2
created by github.com/wandoulabs/codis/pkg/models.TestProxyOfflineInWaitActionReceiver
/Users/kane/go/src/github.com/wandoulabs/codis/pkg/models/action_test.go:44 +0x59e
FAIL github.com/wandoulabs/codis/pkg/models 3.526s
ok github.com/wandoulabs/codis/pkg/proxy/cachepool 0.016s
? github.com/wandoulabs/codis/pkg/proxy/group [no test files]
ok github.com/wandoulabs/codis/pkg/proxy/parser 0.036s
? github.com/wandoulabs/codis/pkg/proxy/redisconn [no test files]
? github.com/wandoulabs/codis/pkg/proxy/redispool [no test files]
ok github.com/wandoulabs/codis/pkg/proxy/router 16.249s
? github.com/wandoulabs/codis/pkg/proxy/router/topology [no test files]
ok github.com/wandoulabs/codis/pkg/utils 0.023s
ok github.com/wandoulabs/codis/cmd/cconfig 0.035s
? github.com/wandoulabs/codis/cmd/proxy [no test files]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment