apache / apache/incubator-seata

AT模式UPDATE修改主键不会回滚

Open
#2,644 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
26k
Forks
8.8k
Avg merge
1d 8h
Merged PRs (30d)
4

Description

语句:UPDATE t_table1 set id = id , name = '修改的name' where id = '主键'
这种语句在发生异常情况下事务不会回滚。

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported UPDATE against t_table1 in Seata AT mode, using the statement and exception scenario from the issue. Trace the transaction rollback path for an UPDATE that assigns the primary key to itself, and confirm completion when the transaction rolls back correctly under the reported failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, sql
Domain
databases, distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.