Skip to content

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
@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.

4 participants