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

fix_rollback_handling: don't send commit on server side YDB errors #41

Merged
merged 2 commits into from
Mar 5, 2024

Conversation

lavrukov
Copy link
Contributor

@lavrukov lavrukov commented Mar 5, 2024

No description provided.

@@ -103,6 +103,42 @@ public static void validate(String request, StatusCode statusCode, String respon
}
}

public static boolean isServerSideError(StatusCode statusCode) {
return switch (statusCode) {
case UNUSED_STATUS,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

question: do we have to skip rollback on UNUSED_STATUS too?

Copy link
Collaborator

@nvamelichev nvamelichev left a comment

Choose a reason for hiding this comment

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

Anything that reduces WARN logs from YOJ is welcome 🦔 👍

@nvamelichev nvamelichev merged commit 6f99527 into main Mar 5, 2024
1 check passed
@nvamelichev nvamelichev deleted the fix_rollback_handling branch March 5, 2024 14:08
@lavrukov lavrukov linked an issue Mar 6, 2024 that may be closed by this pull request
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.

Don't send rollback on server errors
3 participants