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

deleting the last database crashes InfluxDB #380

Closed
tisba opened this issue Mar 31, 2014 · 2 comments
Closed

deleting the last database crashes InfluxDB #380

tisba opened this issue Mar 31, 2014 · 2 comments

Comments

@tisba
Copy link

tisba commented Mar 31, 2014

There is one database left in my local installation (called test_run). If I try to drop it (e.g. via the admin interface), influx just crashes.

InfluxDB v0.5.2 (git: 92a7d37)

$ influxdb -config=/usr/local/etc/influxdb.conf
[03/31/14 15:35:58] [INFO] Redirectoring logging to influxdb.log
[03/31/14 15:35:58] [INFO] Starting Influx Server bound to 127.0.0.1 ...
[03/31/14 15:35:58] [INFO]
+---------------------------------------------+
|  _____        __ _            _____  ____   |
| |_   _|      / _| |          |  __ \|  _ \  |
|   | |  _ __ | |_| |_   ___  _| |  | | |_) | |
|   | | | '_ \|  _| | | | \ \/ / |  | |  _ <  |
|  _| |_| | | | | | | |_| |>  <| |__| | |_) | |
| |_____|_| |_|_| |_|\__,_/_/\_\_____/|____/  |
+---------------------------------------------+


[03/31/14 15:35:58] [INFO] Opening database at /usr/local/var/influxdb/db
[03/31/14 15:35:58] [INFO] Opening wal in /tmp/influxdb/wal
[03/31/14 15:35:58] [INFO] Opening log file /tmp/influxdb/wal/log.1
[03/31/14 15:35:58] [INFO] Opening index file /tmp/influxdb/wal/index.1
[03/31/14 15:35:58] [INFO] Ssl will be disabled since the ssl port or certificate path weren't set
[03/31/14 15:35:58] [INFO] Initializing Raft HTTP server
[03/31/14 15:35:58] [INFO] ProtobufServer listening on 127.0.0.1:8099
[03/31/14 15:35:58] [INFO] Raft Server Listening at http://shakti:8090
[03/31/14 15:35:58] [INFO] Initializing Raft Server: /tmp/influxdb/raft 8090
[03/31/14 15:35:58] [INFO] Recovered from log
[03/31/14 15:35:58] [INFO] Waiting for local server to be added
[03/31/14 15:36:00] [INFO] (raft:efefdf0) Selected as leader. Starting leader loop.
[03/31/14 15:36:00] [INFO] Added server to cluster config: 1, http://shakti:8090, shakti:8099
[03/31/14 15:36:00] [INFO] Checking whether this is the local server new: shakti:8099, local: shakti:8099

[03/31/14 15:36:00] [INFO] Added the local server
[03/31/14 15:36:00] [INFO] Setting server id to 1 and recovering
[03/31/14 15:36:00] [INFO] Checking /tmp/influxdb/wal/log.1, last: 17612266, size: 17612266
[03/31/14 15:36:00] [INFO] DATASTORE: opening or creating shard /usr/local/var/influxdb/db/shard_db/00001
[03/31/14 15:36:00] [INFO] Adding short term shard: 1 - start: Thu Mar 20 01:00:00 +0100 CET 2014 (1395273600). end: Thu Mar 27 01:00:00 +0100 CET 2014 (1395878400). isLocal: %!d(bool=true). servers: [%!s(uint32=1)]
[03/31/14 15:36:00] [INFO] DATASTORE: opening or creating shard /usr/local/var/influxdb/db/shard_db/00002
[03/31/14 15:36:00] [INFO] Adding short term shard: 2 - start: Thu Mar 27 01:00:00 +0100 CET 2014 (1395878400). end: Thu Apr 3 02:00:00 +0200 CEST 2014 (1396483200). isLocal: %!d(bool=true). servers: [%!s(uint32=1)]
[03/31/14 15:36:05] [INFO] Recovering from log...
[03/31/14 15:36:05] [INFO] local: Initializing write buffer with buffer size of 10000
[03/31/14 15:36:05] [INFO] Waiting for servers to recover
[03/31/14 15:36:05] [INFO] Recovering local server
[03/31/14 15:36:05] [INFO] Recovering server 1 from request 402
[03/31/14 15:36:05] [INFO] Recovered local server
[03/31/14 15:36:05] [INFO] recovered
[03/31/14 15:36:05] [INFO] Connecting to other nodes in the cluster
[03/31/14 15:36:05] [INFO] Starting admin interface on port 8083
[03/31/14 15:36:05] [INFO] Starting Http Api server on port 8086
panic: invalid index entry: [402,401,17612266,17612266]

goroutine 7 [running]:
runtime.panic(0x4418b00, 0xc21012d920)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/runtime/panic.c:266 +0xb6
wal.(*index).addEntry(0xc2100a0d60, 0x19100000192, 0x10cbdea, 0x10cbdea)
    /private/tmp/influxdb-VPjq/influxdb/src/wal/index.go:76 +0x17a
wal.(*WAL).index(0xc210080c80, 0xc2102067a0, 0x0)
    /private/tmp/influxdb-VPjq/influxdb/src/wal/wal.go:562 +0xaa
wal.(*WAL).processEntries(0xc210080c80)
    /private/tmp/influxdb-VPjq/influxdb/src/wal/wal.go:254 +0x188
created by wal.NewWAL
    /private/tmp/influxdb-VPjq/influxdb/src/wal/wal.go:103 +0x9f3

goroutine 1 [IO wait]:
net.runtime_pollWait(0x4bb5f90, 0x72, 0x0)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/runtime/netpoll.goc:116 +0x6a
net.(*pollDesc).Wait(0xc210089300, 0x72, 0x4bb3f60, 0x23)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/fd_poll_runtime.go:81 +0x34
net.(*pollDesc).WaitRead(0xc210089300, 0x23, 0x4bb3f60)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/fd_poll_runtime.go:86 +0x30
net.(*netFD).accept(0xc2100892a0, 0x45b33b0, 0x0, 0x4bb3f60, 0x23)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/fd_unix.go:382 +0x2c2
net.(*TCPListener).AcceptTCP(0xc210000400, 0x418a3cb, 0x4e61c10, 0x418a3cb)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/tcpsock_posix.go:233 +0x47
net.(*TCPListener).Accept(0xc210000400, 0x4bbb138, 0xc2101f1248, 0xc210115800, 0x0)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/tcpsock_posix.go:243 +0x27
net/http.(*Server).Serve(0xc210095190, 0x4bb5118, 0xc210000400, 0x0, 0x0)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/http/server.go:1622 +0x91
net/http.Serve(0x4bb5118, 0xc210000400, 0x4bbb110, 0xc210000408, 0x4503390, ...)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/http/server.go:1561 +0x70
api/http.(*HttpServer).Serve(0xc2100a15a0, 0x4bb5118, 0xc210000400)
    /private/tmp/influxdb-VPjq/influxdb/src/api/http/api.go:145 +0xc29
api/http.(*HttpServer).ListenAndServe(0xc2100a15a0)
    /private/tmp/influxdb-VPjq/influxdb/src/api/http/api.go:72 +0x16c
server.(*Server).ListenAndServe(0xc210089a10, 0xc210089a10, 0x0)
    /private/tmp/influxdb-VPjq/influxdb/src/server/server.go:113 +0x583
main.main()
    /private/tmp/influxdb-VPjq/influxdb/src/daemon/influxd.go:119 +0x5fe

goroutine 3 [syscall]:
os/signal.loop()
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/os/signal/signal_unix.go:21 +0x1e
created by os/signal.init·1
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/os/signal/signal_unix.go:27 +0x31

goroutine 4 [chan receive]:
code.google.com/p/log4go.ConsoleLogWriter.run(0xc210075000, 0x4bb41b8, 0xc210000008)
    /private/tmp/influxdb-VPjq/influxdb/src/code.google.com/p/log4go/termlog.go:27 +0x60
created by code.google.com/p/log4go.NewConsoleLogWriter
    /private/tmp/influxdb-VPjq/influxdb/src/code.google.com/p/log4go/termlog.go:19 +0x67

goroutine 5 [select]:
code.google.com/p/log4go.func·002()
    /private/tmp/influxdb-VPjq/influxdb/src/code.google.com/p/log4go/filelog.go:84 +0x84c
created by code.google.com/p/log4go.NewFileLogWriter
    /private/tmp/influxdb-VPjq/influxdb/src/code.google.com/p/log4go/filelog.go:116 +0x2d1

goroutine 6 [syscall]:
runtime.goexit()
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/runtime/proc.c:1394

goroutine 8 [sleep]:
time.Sleep(0x8bb2c97000)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/runtime/time.goc:31 +0x31
cluster.func·001()
    /private/tmp/influxdb-VPjq/influxdb/src/cluster/cluster_configuration.go:131 +0x35
created by cluster.(*ClusterConfiguration).CreateFutureShardsAutomaticallyBeforeTimeComes
    /private/tmp/influxdb-VPjq/influxdb/src/cluster/cluster_configuration.go:136 +0x63

goroutine 10 [chan receive]:
main.waitForSignals(0x4bb5098, 0xc210089a10)
    /private/tmp/influxdb-VPjq/influxdb/src/daemon/null_profiler.go:23 +0x126
created by main.startProfiler
    /private/tmp/influxdb-VPjq/influxdb/src/daemon/null_profiler.go:15 +0x38

goroutine 11 [IO wait]:
net.runtime_pollWait(0x4bb6038, 0x72, 0x0)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/runtime/netpoll.goc:116 +0x6a
net.(*pollDesc).Wait(0xc210089060, 0x72, 0x4bb3f60, 0x23)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/fd_poll_runtime.go:81 +0x34
net.(*pollDesc).WaitRead(0xc210089060, 0x23, 0x4bb3f60)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/fd_poll_runtime.go:86 +0x30
net.(*netFD).accept(0xc210089000, 0x45b33b0, 0x0, 0x4bb3f60, 0x23)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/fd_unix.go:382 +0x2c2
net.(*TCPListener).AcceptTCP(0xc210000368, 0xc21009d090, 0x0, 0x4bb50e8)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/tcpsock_posix.go:233 +0x47
net.(*TCPListener).Accept(0xc210000368, 0xc21009d090, 0x4e71f38, 0x1, 0x1)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/tcpsock_posix.go:243 +0x27
coordinator.(*ProtobufServer).ListenAndServe(0xc2100a29c0)
    /private/tmp/influxdb-VPjq/influxdb/src/coordinator/protobuf_server.go:62 +0x1c7
created by server.(*Server).ListenAndServe
    /private/tmp/influxdb-VPjq/influxdb/src/server/server.go:78 +0x3d

goroutine 12 [IO wait]:
net.runtime_pollWait(0x4bb60e0, 0x72, 0x0)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/runtime/netpoll.goc:116 +0x6a
net.(*pollDesc).Wait(0xc210089ae0, 0x72, 0x4bb3f60, 0x23)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/fd_poll_runtime.go:81 +0x34
net.(*pollDesc).WaitRead(0xc210089ae0, 0x23, 0x4bb3f60)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/fd_poll_runtime.go:86 +0x30
net.(*netFD).accept(0xc210089a80, 0x45b33b0, 0x0, 0x4bb3f60, 0x23)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/fd_unix.go:382 +0x2c2
net.(*TCPListener).AcceptTCP(0xc2100e44f0, 0x18, 0xc2100fd810, 0x418a1a3)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/tcpsock_posix.go:233 +0x47
net.(*TCPListener).Accept(0xc2100e44f0, 0x0, 0x0, 0x0, 0x0)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/tcpsock_posix.go:243 +0x27
net/http.(*Server).Serve(0xc2100ab4b0, 0x4bb5118, 0xc2100e44f0, 0x0, 0x0)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/http/server.go:1622 +0x91
coordinator.func·008()
    /private/tmp/influxdb-VPjq/influxdb/src/coordinator/raft_server.go:500 +0x3a
created by coordinator.(*RaftServer).Serve
    /private/tmp/influxdb-VPjq/influxdb/src/coordinator/raft_server.go:504 +0x519

goroutine 19 [select]:
cluster.(*WriteBuffer).handleWrites(0xc2101121e0)
    /private/tmp/influxdb-VPjq/influxdb/src/cluster/write_buffer.go:59 +0xca
created by cluster.NewWriteBuffer
    /private/tmp/influxdb-VPjq/influxdb/src/cluster/write_buffer.go:37 +0x207

goroutine 14 [select]:
github.com/goraft/raft.(*server).leaderLoop(0xc21005c120)
    /private/tmp/influxdb-VPjq/influxdb/src/github.com/goraft/raft/server.go:765 +0x5fe
github.com/goraft/raft.(*server).loop(0xc21005c120)
    /private/tmp/influxdb-VPjq/influxdb/src/github.com/goraft/raft/server.go:568 +0x33f
created by github.com/goraft/raft.(*server).Start
    /private/tmp/influxdb-VPjq/influxdb/src/github.com/goraft/raft/server.go:472 +0x7af

goroutine 15 [select]:
coordinator.(*RaftServer).CompactLog(0xc21007f300)
    /private/tmp/influxdb-VPjq/influxdb/src/coordinator/raft_server.go:300 +0x2ef
created by coordinator.(*RaftServer).startRaft
    /private/tmp/influxdb-VPjq/influxdb/src/coordinator/raft_server.go:338 +0x38f

goroutine 16 [select]:
coordinator.(*RaftServer).raftLeaderLoop(0xc21007f300, 0xc21011e080)
    /private/tmp/influxdb-VPjq/influxdb/src/coordinator/raft_server.go:407 +0x29c
created by coordinator.(*RaftServer).raftEventHandler
    /private/tmp/influxdb-VPjq/influxdb/src/coordinator/raft_server.go:396 +0x1d0

goroutine 23 [IO wait]:
net.runtime_pollWait(0x4bb5e40, 0x72, 0x0)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/runtime/netpoll.goc:116 +0x6a
net.(*pollDesc).Wait(0xc210117ae0, 0x72, 0x4bb3f60, 0x23)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/fd_poll_runtime.go:81 +0x34
net.(*pollDesc).WaitRead(0xc210117ae0, 0x23, 0x4bb3f60)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/fd_poll_runtime.go:86 +0x30
net.(*netFD).Read(0xc210117a80, 0xc210164000, 0x1000, 0x1000, 0x0, ...)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/fd_unix.go:204 +0x2a0
net.(*conn).Read(0xc210122930, 0xc210164000, 0x1000, 0x1000, 0xc200000001, ...)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/net.go:122 +0xc5
net/http.(*liveSwitchReader).Read(0xc210125628, 0xc210164000, 0x1000, 0x1000, 0xffffffffffffffff, ...)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/http/server.go:204 +0xa5
io.(*LimitedReader).Read(0xc210136520, 0xc210164000, 0x1000, 0x1000, 0x0, ...)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/io/io.go:398 +0xbb
bufio.(*Reader).fill(0xc210118360)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/bufio/bufio.go:91 +0x110
bufio.(*Reader).ReadSlice(0xc210118360, 0xa, 0x0, 0x0, 0x0, ...)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/bufio/bufio.go:274 +0x204
bufio.(*Reader).ReadLine(0xc210118360, 0x0, 0x0, 0x0, 0x0, ...)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/bufio/bufio.go:305 +0x63
net/textproto.(*Reader).readLineSlice(0xc2101386c0, 0x4bab000, 0x4371b40, 0x4fbfce8, 0x4027ef2, ...)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/textproto/reader.go:55 +0x61
net/textproto.(*Reader).ReadLine(0xc2101386c0, 0xc210114a90, 0x1, 0x0, 0xc210205004)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/textproto/reader.go:36 +0x27
net/http.ReadRequest(0xc210118360, 0xc210114a90, 0x0, 0x0)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/http/request.go:526 +0x88
net/http.(*conn).readRequest(0xc210125600, 0x0, 0x0, 0x0)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/http/server.go:575 +0x1bb
net/http.(*conn).serve(0xc210125600)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/http/server.go:1123 +0x3b4
created by net/http.(*Server).Serve
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/http/server.go:1644 +0x28b

goroutine 21 [IO wait]:
net.runtime_pollWait(0x4bb5ee8, 0x72, 0x0)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/runtime/netpoll.goc:116 +0x6a
net.(*pollDesc).Wait(0xc2100bc530, 0x72, 0x4bb3f60, 0x23)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/fd_poll_runtime.go:81 +0x34
net.(*pollDesc).WaitRead(0xc2100bc530, 0x23, 0x4bb3f60)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/fd_poll_runtime.go:86 +0x30
net.(*netFD).accept(0xc2100bc4d0, 0x45b33b0, 0x0, 0x4bb3f60, 0x23)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/fd_unix.go:382 +0x2c2
net.(*TCPListener).AcceptTCP(0xc210000050, 0x418a3cb, 0x4fbde68, 0x418a3cb)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/tcpsock_posix.go:233 +0x47
net.(*TCPListener).Accept(0xc210000050, 0x4bbb138, 0xc210122a30, 0xc210125900, 0x0)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/tcpsock_posix.go:243 +0x27
net/http.(*Server).Serve(0xc2100d6050, 0x4bb5118, 0xc210000050, 0x0, 0x0)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/http/server.go:1622 +0x91
net/http.Serve(0x4bb5118, 0xc210000050, 0x4bbb0e8, 0xc2100c2480, 0x2c, ...)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/http/server.go:1561 +0x70
admin.(*HttpServer).ListenAndServe(0xc2100a2a40)
    /private/tmp/influxdb-VPjq/influxdb/src/admin/http_server.go:35 +0x170
created by server.(*Server).ListenAndServe
    /private/tmp/influxdb-VPjq/influxdb/src/server/server.go:103 +0x37c

goroutine 24 [IO wait]:
net.runtime_pollWait(0x4bb5d98, 0x72, 0x0)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/runtime/netpoll.goc:116 +0x6a
net.(*pollDesc).Wait(0xc2100bc6f0, 0x72, 0x4bb3f60, 0x23)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/fd_poll_runtime.go:81 +0x34
net.(*pollDesc).WaitRead(0xc2100bc6f0, 0x23, 0x4bb3f60)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/fd_poll_runtime.go:86 +0x30
net.(*netFD).Read(0xc2100bc690, 0xc210169000, 0x1000, 0x1000, 0x0, ...)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/fd_unix.go:204 +0x2a0
net.(*conn).Read(0xc210000070, 0xc210169000, 0x1000, 0x1000, 0x49ad6c4, ...)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/net.go:122 +0xc5
net/http.(*liveSwitchReader).Read(0xc2100fe1a8, 0xc210169000, 0x1000, 0x1000, 0x49ad6c4, ...)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/http/server.go:204 +0xa5
io.(*LimitedReader).Read(0xc2100d71c0, 0xc210169000, 0x1000, 0x1000, 0x49ad6c4, ...)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/io/io.go:398 +0xbb
bufio.(*Reader).fill(0xc2100e00c0)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/bufio/bufio.go:91 +0x110
bufio.(*Reader).ReadSlice(0xc2100e00c0, 0xa, 0x0, 0x0, 0x0, ...)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/bufio/bufio.go:274 +0x204
bufio.(*Reader).ReadLine(0xc2100e00c0, 0x0, 0x0, 0x0, 0x0, ...)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/bufio/bufio.go:305 +0x63
net/textproto.(*Reader).readLineSlice(0xc210138090, 0x4bab5e0, 0x4371b40, 0x4e67ce8, 0x4027ef2, ...)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/textproto/reader.go:55 +0x61
net/textproto.(*Reader).ReadLine(0xc210138090, 0xc21016c410, 0x0, 0xc21016a000, 0x4e67b6f)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/textproto/reader.go:36 +0x27
net/http.ReadRequest(0xc2100e00c0, 0xc21016c410, 0x0, 0x0)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/http/request.go:526 +0x88
net/http.(*conn).readRequest(0xc2100fe180, 0x0, 0x0, 0x0)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/http/server.go:575 +0x1bb
net/http.(*conn).serve(0xc2100fe180)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/http/server.go:1123 +0x3b4
created by net/http.(*Server).Serve
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/http/server.go:1644 +0x28b

goroutine 26 [finalizer wait]:
runtime.park(0x4012f30, 0x49ccd50, 0x49cb1c8)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/runtime/proc.c:1342 +0x66
runfinq()
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/runtime/mgc0.c:2279 +0x84
runtime.goexit()
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/runtime/proc.c:1394

goroutine 27 [IO wait]:
net.runtime_pollWait(0x4bb5c48, 0x72, 0x0)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/runtime/netpoll.goc:116 +0x6a
net.(*pollDesc).Wait(0xc210116990, 0x72, 0x4bb3f60, 0x23)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/fd_poll_runtime.go:81 +0x34
net.(*pollDesc).WaitRead(0xc210116990, 0x23, 0x4bb3f60)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/fd_poll_runtime.go:86 +0x30
net.(*netFD).Read(0xc210116930, 0xc210134000, 0x1000, 0x1000, 0x0, ...)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/fd_unix.go:204 +0x2a0
net.(*conn).Read(0xc2100e4e08, 0xc210134000, 0x1000, 0x1000, 0x0, ...)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/net.go:122 +0xc5
net/http.(*liveSwitchReader).Read(0xc2101152a8, 0xc210134000, 0x1000, 0x1000, 0xc210102444, ...)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/http/server.go:204 +0xa5
io.(*LimitedReader).Read(0xc21000abe0, 0xc210134000, 0x1000, 0x1000, 0x45c0100, ...)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/io/io.go:398 +0xbb
bufio.(*Reader).fill(0xc210112480)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/bufio/bufio.go:91 +0x110
bufio.(*Reader).ReadSlice(0xc210112480, 0xa, 0x0, 0x0, 0x0, ...)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/bufio/bufio.go:274 +0x204
bufio.(*Reader).ReadLine(0xc210112480, 0x0, 0x0, 0x0, 0x0, ...)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/bufio/bufio.go:305 +0x63
net/textproto.(*Reader).readLineSlice(0xc21011d150, 0x4bab5e0, 0x4371b40, 0x5e51ce8, 0x4027ef2, ...)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/textproto/reader.go:55 +0x61
net/textproto.(*Reader).ReadLine(0xc21011d150, 0xc21016c5b0, 0x0, 0xc21012c000, 0x0)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/textproto/reader.go:36 +0x27
net/http.ReadRequest(0xc210112480, 0xc21016c5b0, 0x0, 0x0)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/http/request.go:526 +0x88
net/http.(*conn).readRequest(0xc210115280, 0x0, 0x0, 0x0)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/http/server.go:575 +0x1bb
net/http.(*conn).serve(0xc210115280)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/http/server.go:1123 +0x3b4
created by net/http.(*Server).Serve
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/http/server.go:1644 +0x28b

goroutine 28 [IO wait]:
net.runtime_pollWait(0x4bb5ba0, 0x72, 0x0)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/runtime/netpoll.goc:116 +0x6a
net.(*pollDesc).Wait(0xc210116c30, 0x72, 0x4bb3f60, 0x23)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/fd_poll_runtime.go:81 +0x34
net.(*pollDesc).WaitRead(0xc210116c30, 0x23, 0x4bb3f60)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/fd_poll_runtime.go:86 +0x30
net.(*netFD).Read(0xc210116bd0, 0xc21010c000, 0x1000, 0x1000, 0x0, ...)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/fd_unix.go:204 +0x2a0
net.(*conn).Read(0xc2100e4f28, 0xc21010c000, 0x1000, 0x1000, 0x0, ...)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/net.go:122 +0xc5
net/http.(*liveSwitchReader).Read(0xc210115428, 0xc21010c000, 0x1000, 0x1000, 0xc210102394, ...)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/http/server.go:204 +0xa5
io.(*LimitedReader).Read(0xc2101232c0, 0xc21010c000, 0x1000, 0x1000, 0x45c0100, ...)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/io/io.go:398 +0xbb
bufio.(*Reader).fill(0xc2101124e0)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/bufio/bufio.go:91 +0x110
bufio.(*Reader).ReadSlice(0xc2101124e0, 0xa, 0x0, 0x0, 0x0, ...)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/bufio/bufio.go:274 +0x204
bufio.(*Reader).ReadLine(0xc2101124e0, 0x0, 0x0, 0x0, 0x0, ...)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/bufio/bufio.go:305 +0x63
net/textproto.(*Reader).readLineSlice(0xc21011d690, 0x4bab5e0, 0x4371b40, 0x5e71ce8, 0x4027ef2, ...)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/textproto/reader.go:55 +0x61
net/textproto.(*Reader).ReadLine(0xc21011d690, 0xc21016c4e0, 0x0, 0xc210189000, 0x0)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/textproto/reader.go:36 +0x27
net/http.ReadRequest(0xc2101124e0, 0xc21016c4e0, 0x0, 0x0)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/http/request.go:526 +0x88
net/http.(*conn).readRequest(0xc210115400, 0x0, 0x0, 0x0)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/http/server.go:575 +0x1bb
net/http.(*conn).serve(0xc210115400)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/http/server.go:1123 +0x3b4
created by net/http.(*Server).Serve
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/http/server.go:1644 +0x28b

goroutine 29 [chan receive]:
wal.(*WAL).CreateCheckpoint(0xc210080c80, 0x4385ee0, 0xc200000000)
    /private/tmp/influxdb-VPjq/influxdb/src/wal/wal.go:537 +0x94
cluster.(*ClusterConfiguration).CreateCheckpoint(0xc210077a80, 0xc21012d701, 0x1)
    /private/tmp/influxdb-VPjq/influxdb/src/cluster/cluster_configuration.go:691 +0x36
coordinator.(*CoordinatorImpl).DropDatabase(0xc2100a0de0, 0x4bbc3c8, 0xc21011e340, 0xc210206168, 0x8, ...)
    /private/tmp/influxdb-VPjq/influxdb/src/coordinator/coordinator.go:612 +0x103
api/http.func·008(0x4bbc3c8, 0xc21011e340, 0xc210206173, 0x4, 0xc21020617a)
    /private/tmp/influxdb-VPjq/influxdb/src/api/http/api.go:393 +0xa3
api/http.yieldUser(0x4bbc3c8, 0xc21011e340, 0x5e4dc30, 0xc21020617a, 0x4, ...)
    /private/tmp/influxdb-VPjq/influxdb/src/api/http/api.go:451 +0x3b
api/http.(*HttpServer).tryAsClusterAdmin(0xc2100a15a0, 0x4bbb290, 0xc2100a10a0, 0xc210114b60, 0x5e4dc30)
    /private/tmp/influxdb-VPjq/influxdb/src/api/http/api.go:513 +0x342
api/http.(*HttpServer).dropDatabase(0xc2100a15a0, 0x4bbb290, 0xc2100a10a0, 0xc210114b60)
    /private/tmp/influxdb-VPjq/influxdb/src/api/http/api.go:398 +0x87
api/http.*HttpServer.(api/http.dropDatabase)·fm(0x4bbb290, 0xc2100a10a0, 0xc210114b60)
    /private/tmp/influxdb-VPjq/influxdb/src/api/http/api.go:102 +0x44
api/http.func·030(0x4bbb290, 0xc2100a10a0, 0xc210114b60)
    /private/tmp/influxdb-VPjq/influxdb/src/api/http/cors.go:13 +0x180
net/http.HandlerFunc.ServeHTTP(0xc21009d4d0, 0x4bbb290, 0xc2100a10a0, 0xc210114b60)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/http/server.go:1220 +0x40
github.com/bmizerany/pat.(*PatternServeMux).ServeHTTP(0xc210000408, 0x4bbb290, 0xc2100a10a0, 0xc210114b60)
    /private/tmp/influxdb-VPjq/influxdb/src/github.com/bmizerany/pat/mux.go:109 +0x1be
net/http.serverHandler.ServeHTTP(0xc210095190, 0x4bbb290, 0xc2100a10a0, 0xc210114b60)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/http/server.go:1597 +0x16e
net/http.(*conn).serve(0xc210115800)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/http/server.go:1167 +0x7b7
created by net/http.(*Server).Serve
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/http/server.go:1644 +0x28b
@toddboom
Copy link
Contributor

@tisba Thanks for reporting this! I think this is a dupe of #378, which just appeared with the v0.5.2 release. We're working on a fix right now and will get it out soon.

@tisba
Copy link
Author

tisba commented Mar 31, 2014

Sorry, didn't saw #378. Looks pretty much like the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants