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

WaitForLeader times out before an election takes place #3205

Closed
nstott opened this issue Jul 1, 2015 · 4 comments
Closed

WaitForLeader times out before an election takes place #3205

nstott opened this issue Jul 1, 2015 · 4 comments
Assignees
Milestone

Comments

@nstott
Copy link

nstott commented Jul 1, 2015

On a new cluster, If i do the following,
start up one node, wait more then 5 seconds, start up a second node
then the first server will hit the timeout here:
https://github.com/influxdb/influxdb/blob/master/meta/store.go#L402
and will wait endlessly here:
https://github.com/influxdb/influxdb/blob/master/cmd/influxd/run/server.go#L298

The first server is stuck trying to elect a leader. Once the other nodes come online then a leader is elected and the nodes are created properly, but the first node never completes the initialization and needs to be restarted

It seems to me as though there shouldn't be a timeout there. if the node doesn't exist and we need to meta.CreateLocalNode, then we shouldn't timeout prematurely

@pauldix pauldix added this to the 0.9.2 milestone Jul 1, 2015
@pauldix
Copy link
Member

pauldix commented Jul 1, 2015

@jwilder I think this can be done in conjunction with the work on cluster joining #2966. Since @benbjohnson is going to be working on compression in the 0.9.2 release cycle, can you take a look at both this and the joining issue for 0.9.2?

@otoolep
Copy link
Contributor

otoolep commented Jul 19, 2015

Believe fixed by #3256

@otoolep otoolep closed this as completed Jul 19, 2015
@otoolep
Copy link
Contributor

otoolep commented Jul 19, 2015

Cherry-picked to 0.9.2.

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

5 participants