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

storage: add timeout to NodeLiveness heartbeat loop #18005

Conversation

nvanbenschoten
Copy link
Member

@nvanbenschoten nvanbenschoten commented Aug 29, 2017

While investigating #17524, we found that a NodeLiveness request was stuck, which
blocked the NodeLiveness semaphore. This prevented any liveness updates from
being sent by the source of the stuck liveness update. While introducing a
timeout here on the liveness loop won't fix the issue we saw, it should prevent
stuck liveness updates in the future from preventing a node from ever updating
its liveness record, which makes everything harder to deal with.

@nvanbenschoten nvanbenschoten requested review from tbg and a team August 29, 2017 20:14
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@bdarnell
Copy link
Contributor

:lgtm: but I don't follow how this would "bring down the entire liveness range". Wouldn't the impact be limited to this node being unable to update its liveness?


Review status: 0 of 1 files reviewed at latest revision, all discussions resolved, all commit checks successful.


Comments from Reviewable

@tbg
Copy link
Member

tbg commented Aug 30, 2017

LGTM. I think the fact that this hit us so hard in our debugging session which motivated this was since there was more going wrong elsewhere. @nvanbenschoten, do you remember the details?

@nvanbenschoten nvanbenschoten force-pushed the nvanbenschoten/nodeLivenessTimeout branch from fd4b5e5 to bed3634 Compare August 30, 2017 18:06
While investigating cockroachdb#17524, we found that a NodeLiveness request was stuck, which
blocked the NodeLiveness semaphore. This prevented any liveness updates from
being sent by the source of the stuck liveness update. While introducing a
timeout here on the liveness loop won't fix the issue we saw, it should prevent
stuck liveness updates in the future from preventing a node from ever
updating its liveness record, which makes everything harder to deal with.
@nvanbenschoten nvanbenschoten force-pushed the nvanbenschoten/nodeLivenessTimeout branch from bed3634 to 97247c4 Compare August 30, 2017 18:11
@nvanbenschoten
Copy link
Member Author

Yeah, there was definitely more going wrong so this alone "bringing down the entire liveness range" is probably an inaccurate hyperbole. This in concert with something else was having that effect. I changed the wording to be more specific.

@nvanbenschoten nvanbenschoten merged commit f5349c9 into cockroachdb:master Aug 30, 2017
@nvanbenschoten nvanbenschoten deleted the nvanbenschoten/nodeLivenessTimeout branch August 30, 2017 18:30
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.

4 participants