Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Fix Tendermint deadlock #4654

Merged
merged 2 commits into from
Feb 24, 2017
Merged

Fix Tendermint deadlock #4654

merged 2 commits into from
Feb 24, 2017

Conversation

keorn
Copy link

@keorn keorn commented Feb 23, 2017

No description provided.

@keorn keorn added A0-pleasereview 🤓 Pull request needs code review. M4-core ⛓ Core client code / Rust. labels Feb 23, 2017
@rphmeier
Copy link
Contributor

Are there any race conditions which could occur during handling of the message now that the step isn't protected within that logic? Seems that now a writer could squeeze in between readers in handle_valid_message and generate_message.

@rphmeier
Copy link
Contributor

(this could be averted by threading the read lock through; unfortunately there still isn't a seamless upgrade which prevents races against other potential writers)

@keorn
Copy link
Author

keorn commented Feb 23, 2017

handle_valid_message should run according to the latest state, "valid" is invariant to state

@gavofyork gavofyork added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Feb 24, 2017
@gavofyork gavofyork merged commit 9b5bcb8 into master Feb 24, 2017
@gavofyork gavofyork deleted the tender-lock branch February 24, 2017 09:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well. M4-core ⛓ Core client code / Rust.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants