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

added timeout to raft initialization #290

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

eolesinski
Copy link
Contributor

This PR addresses issue #281 by adding a timeout to the raft initialization in node.cpp

Tested: tested by running scripts/test.sh and verified that basic_raft_cluster_failure_test no longer hangs.

Signed-off-by: eolesinski <[email protected]>
Co-authored-by: Michael Maurer <[email protected]>
Copy link
Collaborator

@maurermi maurermi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can confirm that these changes fix the hanging test on MacOS, though I will refrain from giving this an approving review as I was heavily involved in developing this PR -- @HalosGhost it would be awesome if you could read this over and give a sanity check, and feel free to let me know if there are additional tests worth running on a Mac to verify this result.

Hopefully this change allows us to proceed with #263

Copy link
Collaborator

@HalosGhost HalosGhost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

T-ACK; adds a simple timeout for raft node initialization. Doesn't break any other tests.

Looks good to me!

@HalosGhost HalosGhost merged commit fb29b84 into mit-dci:trunk Jul 25, 2024
7 checks passed
@eolesinski eolesinski deleted the add-raft-timeout branch July 25, 2024 16:47
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.

3 participants