Created
February 7, 2015 04:23
-
-
Save hongchaodeng/4224aeb2872a48c1c610 to your computer and use it in GitHub Desktop.
etcd cluster test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
? github.com/go-distributed/meritop [no test files] | |
=== RUN TestControllerInitEtcdLayout | |
2015/02/06 20:22:32 etcdserver: name = controller_test | |
2015/02/06 20:22:32 etcdserver: data dir = /var/folders/6g/r7fwqcld2s95n7p8hx5pdbl40000gp/T/etcd902684176 | |
2015/02/06 20:22:32 etcdserver: heartbeat = 10ms | |
2015/02/06 20:22:32 etcdserver: election = 100ms | |
2015/02/06 20:22:32 etcdserver: snapshot count = 0 | |
2015/02/06 20:22:32 etcdserver: advertise client URLs = http://127.0.0.1:64518 | |
2015/02/06 20:22:32 etcdserver: initial advertise peer URLs = http://127.0.0.1:64517 | |
2015/02/06 20:22:32 etcdserver: initial cluster = controller_test=http://127.0.0.1:64517 | |
2015/02/06 20:22:32 etcdserver: start member e9f007d604a1ac47 in cluster 4dae3cdba4bde6bf | |
2015/02/06 20:22:32 raft: e9f007d604a1ac47 became follower at term 0 | |
2015/02/06 20:22:32 raft: newRaft e9f007d604a1ac47 [peers: [], term: 0, commit: 0, applied: 0, lastindex: 0, lastterm: 0] | |
2015/02/06 20:22:32 raft: e9f007d604a1ac47 became follower at term 1 | |
2015/02/06 20:22:32 etcdserver: set snapshot count to default 10000 | |
2015/02/06 20:22:32 etcdserver: added local member e9f007d604a1ac47 [http://127.0.0.1:64517] to cluster 4dae3cdba4bde6bf | |
2015/02/06 20:22:32 raft: e9f007d604a1ac47 is starting a new election at term 1 | |
2015/02/06 20:22:32 raft: e9f007d604a1ac47 became candidate at term 2 | |
2015/02/06 20:22:32 raft: e9f007d604a1ac47 received vote from e9f007d604a1ac47 at term 2 | |
2015/02/06 20:22:32 raft: e9f007d604a1ac47 became leader at term 2 | |
2015/02/06 20:22:32 raft.node: e9f007d604a1ac47 elected leader e9f007d604a1ac47 at term 2 | |
2015/02/06 20:22:32 etcdserver: published {Name:controller_test ClientURLs:[http://127.0.0.1:64518]} to cluster 4dae3cdba4bde6bf | |
panic: runtime error: invalid memory address or nil pointer dereference | |
[signal 0xb code=0x1 addr=0x0 pc=0xbec7b] | |
goroutine 38 [running]: | |
runtime.panic(0x3f1420, 0x689a24) | |
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/runtime/panic.c:279 +0xf5 | |
log.(*Logger).Output(0x0, 0x2, 0xc208130e10, 0x49, 0x0, 0x0) | |
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/log/log.go:134 +0x4eb | |
log.(*Logger).Panicf(0x0, 0x4ab750, 0x23, 0xb9df80, 0x2, 0x2) | |
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/log/log.go:199 +0x8a | |
github.com/go-distributed/meritop/controller.func·001() | |
/Users/hdeng/project/gopath/src/github.com/go-distributed/meritop/controller/controller.go:93 +0x1a2 | |
created by github.com/go-distributed/meritop/controller.(*Controller).setupWatchOnJobStatus | |
/Users/hdeng/project/gopath/src/github.com/go-distributed/meritop/controller/controller.go:96 +0x15f | |
goroutine 16 [chan receive]: | |
testing.RunTests(0x517528, 0x6827a0, 0x1, 0x1, 0x1) | |
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/testing/testing.go:505 +0x923 | |
testing.Main(0x517528, 0x6827a0, 0x1, 0x1, 0x692940, 0x0, 0x0, 0x692940, 0x0, 0x0) | |
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/testing/testing.go:435 +0x84 | |
main.main() | |
github.com/go-distributed/meritop/controller/_test/_testmain.go:47 +0x9c | |
goroutine 19 [finalizer wait]: | |
runtime.park(0x148a0, 0x68d038, 0x68bae9) | |
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/runtime/proc.c:1369 +0x89 | |
runtime.parkunlock(0x68d038, 0x68bae9) | |
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/runtime/proc.c:1385 +0x3b | |
runfinq() | |
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/runtime/mgc0.c:2644 +0xcf | |
runtime.goexit() | |
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/runtime/proc.c:1445 | |
goroutine 20 [runnable]: | |
syscall.Syscall(0xa, 0xc208117880, 0x0, 0x0, 0x0, 0x0, 0x0) | |
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/syscall/asm_darwin_amd64.s:20 +0x5 | |
syscall.Unlink(0xc208117810, 0x68, 0x0, 0x0) | |
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/syscall/zsyscall_darwin_amd64.go:1295 +0x8b | |
os.Remove(0xc208117810, 0x68, 0x0, 0x0) | |
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/os/file_unix.go:265 +0x49 | |
os.RemoveAll(0xc208117810, 0x68, 0x0, 0x0) | |
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/os/path.go:68 +0x5a | |
os.RemoveAll(0xc208130b90, 0x42, 0x0, 0x0) | |
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/os/path.go:97 +0x418 | |
os.RemoveAll(0xc20803a600, 0x3e, 0x0, 0x0) | |
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/os/path.go:97 +0x418 | |
github.com/go-distributed/meritop/pkg/etcdutil.(*member).Terminate(0xc2080030e0, 0xc208050120) | |
/Users/hdeng/project/gopath/src/github.com/go-distributed/meritop/pkg/etcdutil/cluster.go:146 +0xf7 | |
github.com/go-distributed/meritop/controller.TestControllerInitEtcdLayout(0xc208050120) | |
/Users/hdeng/project/gopath/src/github.com/go-distributed/meritop/controller/controller_test.go:55 +0x98e | |
testing.tRunner(0xc208050120, 0x6827a0) | |
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/testing/testing.go:422 +0x8b | |
created by testing.RunTests | |
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/testing/testing.go:504 +0x8db | |
goroutine 32 [runnable]: | |
net.runtime_pollWait(0x76b6e0, 0x72, 0x0) | |
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/runtime/netpoll.goc:146 +0x66 | |
net.(*pollDesc).Wait(0xc2080b88b0, 0x72, 0x0, 0x0) | |
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/fd_poll_runtime.go:84 +0x46 | |
net.(*pollDesc).WaitRead(0xc2080b88b0, 0x0, 0x0) | |
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/fd_poll_runtime.go:89 +0x42 | |
net.(*netFD).Read(0xc2080b8850, 0xc2080c2000, 0x1000, 0x1000, 0x0, 0x76a640, 0x23) | |
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/fd_unix.go:242 +0x34c | |
net.(*conn).Read(0xc20803c358, 0xc2080c2000, 0x1000, 0x1000, 0x0, 0x0, 0x0) | |
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/net.go:122 +0xe7 | |
net/http.noteEOFReader.Read(0x76c8e0, 0xc20803c358, 0xc208041238, 0xc2080c2000, 0x1000, 0x1000, 0x0, 0x0, 0x0) | |
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/http/transport.go:1203 +0x72 | |
net/http.(*noteEOFReader).Read(0xc2080bc2e0, 0xc2080c2000, 0x1000, 0x1000, 0xc2080b68b0, 0x0, 0x0) | |
<autogenerated>:124 +0xca | |
bufio.(*Reader).fill(0xc2080c0000) | |
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/bufio/bufio.go:97 +0x1b3 | |
bufio.(*Reader).ReadSlice(0xc2080c0000, 0xa, 0x0, 0x0, 0x0, 0x0, 0x0) | |
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/bufio/bufio.go:298 +0x22c | |
net/http.readLine(0xc2080c0000, 0x0, 0x0, 0x0, 0x0, 0x0) | |
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/http/chunked.go:111 +0x59 | |
net/http.(*chunkedReader).beginChunk(0xc2080d0180) | |
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/http/chunked.go:48 +0x45 | |
net/http.(*chunkedReader).Read(0xc2080d0180, 0xc2080a8000, 0x200, 0x200, 0x0, 0x0, 0x0) | |
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/http/chunked.go:78 +0xc0 | |
net/http.(*body).readLocked(0xc20803a580, 0xc2080a8000, 0x200, 0x200, 0x7daf2, 0x0, 0x0) | |
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/http/transfer.go:577 +0x81 | |
net/http.(*body).Read(0xc20803a580, 0xc2080a8000, 0x200, 0x200, 0x0, 0x0, 0x0) | |
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/http/transfer.go:572 +0x11a | |
net/http.(*bodyEOFSignal).Read(0xc20803a5c0, 0xc2080a8000, 0x200, 0x200, 0x0, 0x0, 0x0) | |
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/http/transport.go:1126 +0x254 | |
bytes.(*Buffer).ReadFrom(0xc2080b8770, 0x76cdf8, 0xc20803a5c0, 0x0, 0x0, 0x0) | |
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/bytes/buffer.go:169 +0x20e | |
io/ioutil.readAll(0x76cdf8, 0xc20803a5c0, 0x200, 0x0, 0x0, 0x0, 0x0, 0x0) | |
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/io/ioutil/ioutil.go:33 +0x1ae | |
io/ioutil.ReadAll(0x76cdf8, 0xc20803a5c0, 0x0, 0x0, 0x0, 0x0, 0x0) | |
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/io/ioutil/ioutil.go:42 +0x6c | |
github.com/coreos/go-etcd/etcd.(*Client).SendRequest(0xc208052480, 0xc20809f710, 0x0, 0x0, 0x0) | |
/Users/hdeng/project/gopath/src/github.com/coreos/go-etcd/etcd/requests.go:276 +0x1228 | |
github.com/coreos/go-etcd/etcd.(*Client).getCancelable(0xc208052480, 0xc2080b60d0, 0xe, 0xc20809f5f0, 0x0, 0x1, 0x0, 0x0) | |
/Users/hdeng/project/gopath/src/github.com/coreos/go-etcd/etcd/requests.go:58 +0x3da | |
github.com/coreos/go-etcd/etcd.(*Client).watchOnce(0xc208052480, 0xc2080b60d0, 0xe, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0) | |
/Users/hdeng/project/gopath/src/github.com/coreos/go-etcd/etcd/watch.go:96 +0x1fb | |
github.com/coreos/go-etcd/etcd.(*Client).Watch(0xc208052480, 0xc2080b60d0, 0xe, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) | |
/Users/hdeng/project/gopath/src/github.com/coreos/go-etcd/etcd/watch.go:28 +0x1c8 | |
github.com/go-distributed/meritop/controller.func·001() | |
/Users/hdeng/project/gopath/src/github.com/go-distributed/meritop/controller/controller.go:91 +0x77 | |
created by github.com/go-distributed/meritop/controller.(*Controller).setupWatchOnJobStatus | |
/Users/hdeng/project/gopath/src/github.com/go-distributed/meritop/controller/controller.go:96 +0x15f | |
goroutine 35 [select]: | |
net/http.(*persistConn).readLoop(0xc2080411e0) | |
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/http/transport.go:868 +0x829 | |
created by net/http.(*Transport).dialConn | |
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/http/transport.go:600 +0x93f | |
goroutine 36 [select]: | |
net/http.(*persistConn).writeLoop(0xc2080411e0) | |
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/http/transport.go:885 +0x38f | |
created by net/http.(*Transport).dialConn | |
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/http/transport.go:601 +0x957 | |
goroutine 40 [runnable]: | |
net/http.(*persistConn).readLoop(0xc208041760) | |
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/http/transport.go:868 +0x829 | |
created by net/http.(*Transport).dialConn | |
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/http/transport.go:600 +0x93f | |
goroutine 41 [select]: | |
net/http.(*persistConn).writeLoop(0xc208041760) | |
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/http/transport.go:885 +0x38f | |
created by net/http.(*Transport).dialConn | |
/usr/local/Cellar/go/1.3.3/libexec/src/pkg/net/http/transport.go:601 +0x957 | |
exit status 2 | |
FAIL github.com/go-distributed/meritop/controller 0.158s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment