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

Introduce retries when pinging servers. #155

Merged
merged 2 commits into from
Feb 3, 2025

Conversation

pkarumanchi9
Copy link
Contributor

Validate the version response as opposed to logging and moving on.

Validate the version response as opposed to logging and moving on.
}

if (i < maxRetries - 1) {
Thread.sleep(retryDelayMs);
Copy link
Member

Choose a reason for hiding this comment

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

This would block for 10 seconds per node during startup, which could be a very long time and would prevent application startup. I think we should aim to do this asynchronously or some other way.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

true, it can block for o(seconds). I've few more thoughts. I will share them shortly.

Delay of 3s per ASG during boot up.
Long term fix is to change this to completableFuture.
@pkarumanchi9 pkarumanchi9 merged commit 3bf8cd7 into master Feb 3, 2025
2 of 3 checks passed
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.

2 participants