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

Remove unnecessary timeout in WaitForLeader() #3256

Merged
merged 1 commit into from Jul 19, 2015

Conversation

cannium
Copy link
Contributor

@cannium cannium commented Jul 7, 2015

If the timer expires and a leader is still not selected, the local data node will never be created.

@otoolep
Copy link
Contributor

otoolep commented Jul 9, 2015

CircleCI failure, I kicked the build.

@otoolep
Copy link
Contributor

otoolep commented Jul 9, 2015

This build failure seems real, and I believe the code needs further work.

If the timer expires and a leader is still not selected, the local data node will never be created.
@cannium cannium force-pushed the remove-unnecessary-timeout branch from dc29f99 to c41ef86 Compare July 9, 2015 07:03
@cannium
Copy link
Contributor Author

cannium commented Jul 9, 2015

It's strange I can build the prior code successfully. The tests should pass this time.

@otoolep
Copy link
Contributor

otoolep commented Jul 10, 2015

Thanks @cannium

@benbjohnson -- does this make sense to you?

@nstott
Copy link

nstott commented Jul 15, 2015

this is roughly the fix i had that resolved #3205 for me

@cannium
Copy link
Contributor Author

cannium commented Jul 16, 2015

@nstott yep, same problem.

@benbjohnson
Copy link
Contributor

@otoolep yes, this makes sense. I think the timeout was only meant to be temporary.

@otoolep
Copy link
Contributor

otoolep commented Jul 19, 2015

OK, thanks @benbjohnson -- merging now.

@otoolep
Copy link
Contributor

otoolep commented Jul 19, 2015

Thanks @cannium

otoolep added a commit that referenced this pull request Jul 19, 2015
Remove unnecessary timeout in WaitForLeader()
@otoolep otoolep merged commit 641b38f into influxdata:master 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

Successfully merging this pull request may close these issues.

None yet

4 participants