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

Clustering - add duplicate node - crash #2438

Closed
julienmathevet opened this issue Apr 27, 2015 · 2 comments
Closed

Clustering - add duplicate node - crash #2438

julienmathevet opened this issue Apr 27, 2015 · 2 comments

Comments

@julienmathevet
Copy link

with new default config to localhost, I started a second server without setting hostname. So It joins to first cluster with giving locahost. Resulting a crash of first server:

[raft] 2015/04/27 13:44:38 apply: add node: duplicate node url
panic: apply: add node: duplicate node url

goroutine 10 [running]:
log.(*Logger).Panicf(0xc20800a6e0, 0x9fc410, 0x13, 0xc208185d58, 0x1, 0x1)
    /root/.gvm/gos/go1.4.2/src/log/log.go:200 +0xd1
github.com/influxdb/influxdb/raft.(*Log).mustApplyAddPeer(0xc208038820, 0xc2080ffa70)
    /root/.gvm/pkgsets/go1.4.2/global/src/github.com/influxdb/influxdb/raft/log.go:1519 +0x2ce
github.com/influxdb/influxdb/raft.(*Log).applyNextUnappliedEntry(0xc208038820, 0xc20805a540, 0x0, 0x0)
    /root/.gvm/pkgsets/go1.4.2/global/src/github.com/influxdb/influxdb/raft/log.go:1437 +0x752
github.com/influxdb/influxdb/raft.(*Log).applier(0xc208038820, 0xc20805a540)
    /root/.gvm/pkgsets/go1.4.2/global/src/github.com/influxdb/influxdb/raft/log.go:1383 +0x161
created by github.com/influxdb/influxdb/raft.func·002
    /root/.gvm/pkgsets/go1.4.2/global/src/github.com/influxdb/influxdb/raft/log.go:389 +0x764
@cboggs
Copy link

cboggs commented Apr 27, 2015

Mostly a duplicate of #2279. Good to point out that the 'stock' config leaves the hostnames identically empty and thus causes this behavior. Not sure if that should be considered a bug or not, but worth noting.

@beckettsean
Copy link
Contributor

Thanks for the extra context, this does appear to be a duplicate of #2279.

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

3 participants