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

bugfix: Corrected an issue in the Seata AT mode where, upon multiple … #6547

Closed
wants to merge 1 commit into from

Conversation

mobuxian
Copy link

…modifications to the same record and encountering an exception during business execution, the rollback process would fail.

  • I have registered the PR changes.

Ⅰ. Describe what this PR did

When a business operation fails, Seata initiates a data rollback and concurrently checks if the data has been modified. If modifications are found, the rollback process may fail. In scenarios where the same record is updated multiple times, Seata's default sequential rollback approach can lead to rollback failures. By altering Seata's rollback strategy to perform rollbacks in reverse order—starting with the most recent modification and proceeding backwards—the issue can be resolved. This adjustment ensures that changes are undone from the latest to the earliest, effectively addressing the problem. (The fix involves storages such as DB, Redis, and file systems correctly returning branchIDs.)

Ⅱ. Does this pull request fix one issue?

Ⅲ. Why don't you add test cases (unit test/integration test)?

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

…modifications to the same record and encountering an exception during business execution, the rollback process would fail.
@funky-eyes
Copy link
Contributor

#6121

@funky-eyes funky-eyes closed this May 14, 2024
@mobuxian mobuxian deleted the 2.x-fixbug branch May 15, 2024 00:50
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