Skip to content

rabbit_khepri: Retry register_projections during boot #11741

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

Merged
merged 3 commits into from
Jul 25, 2024

Conversation

dcorbacho
Copy link
Contributor

Gives some time to form a majority during the boot process, allowing nodes to boot more easily.

See discussion #11685 (comment)

Gives some time to form a majority during the boot process,
allowing nodes to boot more easily
rabbit_log:info("Waiting for Khepri projections for ~tp ms, ~tp retries left",
[Timeout, Retries - 1]),
try
register_projections()
Copy link
Collaborator

Choose a reason for hiding this comment

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

This would retry registering all projections again if it fails. I think that's probably ok since I expect the first projection would be the only one to time out but we could make this a little more clever and fold over the list of projections to register and the retry number. Feel free to ignore though, it seems very unlikely to be hit in practice

@dcorbacho dcorbacho force-pushed the retry-register-projections-during-boot branch from ad04139 to cdff2ae Compare July 18, 2024 14:09
@michaelklishin michaelklishin added this to the 4.0.0 milestone Jul 25, 2024
@michaelklishin michaelklishin merged commit 5a56e32 into main Jul 25, 2024
191 checks passed
@michaelklishin michaelklishin deleted the retry-register-projections-during-boot branch July 25, 2024 19:39
michaelklishin added a commit that referenced this pull request Jul 25, 2024
rabbit_khepri: Retry register_projections during boot (backport #11741)
michaelklishin added a commit that referenced this pull request Jul 26, 2024
rabbit_khepri: Retry register_projections during boot (backport #11741) (backport #11833)
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