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

AKCORE-229: Updated retry logic for commitSync #1328

Merged
merged 2 commits into from
Jun 28, 2024
Merged

Conversation

ShivsundarR
Copy link
Member

What
Updated retry logic for commitSync.

@ShivsundarR ShivsundarR requested review from a team as code owners June 25, 2024 19:18
@ShivsundarR ShivsundarR requested review from AndrewJSchofield and removed request for a team June 25, 2024 19:19
@@ -526,9 +527,12 @@ private void handleShareAcknowledgeSuccess(Node fetchTarget,

if (!handler.handleResponse(response, requestVersion)) {
acknowledgeRequestState.onFailedAttempt(currentTimeMs);
if (response.error() != Errors.INVALID_SHARE_SESSION_EPOCH) {
if (response.error().exception() instanceof RetriableException || response.error() != Errors.INVALID_SHARE_SESSION_EPOCH) {
Copy link
Member

Choose a reason for hiding this comment

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

This condition doesn't make sense to me. What about unrecoverable errors? I think they'll pass the test when they should not.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah right, my bad, have fixed the condition now.

@AndrewJSchofield
Copy link
Member

Fix merged into AK PR.

@ShivsundarR ShivsundarR merged commit a2dfe98 into kip-932 Jun 28, 2024
2 of 7 checks passed
@ShivsundarR ShivsundarR deleted the AKCORE-229 branch June 28, 2024 04:55
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.

None yet

2 participants