-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Snapshot - panic: not implemented yet #3014
Comments
Same Issue here, ubuntu 14.04, influx 0.9.0 It seems to happen every now and then when I send a post request to the influx server (every 3 minutes or so). Here is a sample of what my post request looks like (each post request contains about 100 lines) :
And here are the influx logs :
Is there a way to disable those snapshots ? What are they used for ? |
Snapshots are part of the Raft system, and allow the replicated log to be truncated. You can learn about them in the Raft paper: https://ramcloud.stanford.edu/raft.pdf Until snapshots are implemented, you can increase the Raft snapshot threshold. but you must build from source to do this. In addition 0.9.1 includes fixes that ensures the snapshot threshold should not be reached as quickly. Are you able to build from source? |
[maxcanada talking here] any solution to avoid that the server would panic ? I use only one node if that can help. |
@dgnorton said he was looking at this. |
Hi,
i have a big problem with influxDB and Snapshots. All time influxDB tries to create a snapshot of database it crashes with the following message.
2015/06/17 09:25:12 [INFO] raft: Starting snapshot up to 8210
2015/06/17 09:25:12 [INFO] snapshot: Creating new snapshot at /var/opt/influxdb/meta/snapshots/2-8210-1434525912419.tmp
panic: not implemented yet
goroutine 12 [running]:
github.com/influxdb/influxdb/meta.(_storeFSMSnapshot).Persist(0xc2081146f0, 0x7f41d0793870, 0xc2080303c0, 0x0, 0x0)
/root/.gvm/pkgsets/go1.4.2/global/src/github.com/influxdb/influxdb/meta/store.go:1592 +0x76
github.com/hashicorp/raft.(_Raft).takeSnapshot(0xc2080b61c0, 0x0, 0x0)
/root/.gvm/pkgsets/go1.4.2/global/src/github.com/hashicorp/raft/raft.go:1674 +0x826
github.com/hashicorp/raft.(_Raft).runSnapshots(0xc2080b61c0)
/root/.gvm/pkgsets/go1.4.2/global/src/github.com/hashicorp/raft/raft.go:1602 +0x105
github.com/hashicorp/raft._Raft.(github.com/hashicorp/raft.runSnapshots)·fm()
/root/.gvm/pkgsets/go1.4.2/global/src/github.com/hashicorp/raft/raft.go:243 +0x27
github.com/hashicorp/raft.func·011()
/root/.gvm/pkgsets/go1.4.2/global/src/github.com/hashicorp/raft/state.go:152 +0x51
created by github.com/hashicorp/raft.(*raftState).goFunc
/root/.gvm/pkgsets/go1.4.2/global/src/github.com/hashicorp/raft/state.go:153 +0xe3
I tried to deactivate the generating of snapshots by config.
[snapshot]
enabled = false # Enabled by default if not set.
But this has no effect. InfluxDB still tries generate snapshots. In the consequence I start InfluxDB and five minutes later it crashes. It crashes until I delete manually all databases from filesystem and restart InfluxDB
Is there anything I could try or it is a bug?
The text was updated successfully, but these errors were encountered: