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

TimeoutRollbacked and Rollbacked residues #6875

Open
1 task
funky-eyes opened this issue Sep 24, 2024 · 2 comments
Open
1 task

TimeoutRollbacked and Rollbacked residues #6875

funky-eyes opened this issue Sep 24, 2024 · 2 comments
Assignees
Labels
good first issue Good for newcomers task: help-wanted Extra attention is needed type: optimize

Comments

@funky-eyes
Copy link
Contributor

  • I have searched the issues of this repository and believe that this is not a duplicate.

Ⅰ. Issue Description

TimeoutRollbacked和Rollbacked在db,redis等网络出现问题时,会删除失败,除非重启server,否则这个数据将一直残留,file下如盘满了等情况change status成功后,删除可能就失败了,也会残留
目前DefaultCoordinator中针对committed这种状态是有补偿的,对TimeoutRollbacked和Rollbacked没有任何补偿处理。
In cases where there are network issues with databases, Redis, etc., data may be deleted unsuccessfully and will remain unless the server is restarted. If the disk is full or there are other issues, even after a successful change of status, deletion may fail, leaving the data residual. Currently, in DefaultCoordinator, there is compensation handling for the committed state, but there is no compensation handling for the TimeoutRollbacked and Rollbacked states.

    private final GlobalStatus[] retryRollbackingStatuses = new GlobalStatus[] {
        GlobalStatus.TimeoutRollbacking,
        GlobalStatus.TimeoutRollbackRetrying, GlobalStatus.RollbackRetrying};

    private final GlobalStatus[] retryCommittingStatuses = new GlobalStatus[] {GlobalStatus.CommitRetrying, GlobalStatus.Committed};

Ⅱ. Describe what happened

If there is an exception, please attach the exception trace:

Just paste your stack trace here!

Ⅲ. Describe what you expected to happen

Ⅳ. How to reproduce it (as minimally and precisely as possible)

  1. xxx
  2. xxx
  3. xxx

Minimal yet complete reproducer code (or URL to code):

Ⅴ. Anything else we need to know?

Ⅵ. Environment:

  • JDK version(e.g. java -version):
  • Seata client/server version:
  • Database version:
  • OS(e.g. uname -a):
  • Others:
@funky-eyes funky-eyes added task: help-wanted Extra attention is needed good first issue Good for newcomers type: optimize labels Sep 24, 2024
@varungujarathi9
Copy link

Hey I can work on this

@funky-eyes
Copy link
Contributor Author

Hey I can work on this

Okay, looking forward to your PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers task: help-wanted Extra attention is needed type: optimize
Projects
None yet
Development

No branches or pull requests

2 participants