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: global session is not change to Committed in saga mode #5050

Merged
merged 9 commits into from Nov 4, 2022

Conversation

wingchi-leung
Copy link
Contributor

@wingchi-leung wingchi-leung commented Nov 3, 2022

  • I have registered the PR changes.

Ⅰ. Describe what this PR did

Ⅱ. Does this pull request fix one issue?

fixes #5045

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

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

Copy link
Contributor

@funky-eyes funky-eyes left a comment

Choose a reason for hiding this comment

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

LGTM @slievrly PTAL

@funky-eyes funky-eyes added this to the 1.6.0 milestone Nov 3, 2022
@funky-eyes funky-eyes added type: bug Category issues or prs related to bug. module/server server module labels Nov 3, 2022
liangyongzhi added 3 commits November 3, 2022 20:55
# Conflicts:
#	changes/en-us/develop.md
#	changes/zh-cn/develop.md
changes/en-us/develop.md Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

codecov-commenter commented Nov 4, 2022

Codecov Report

Merging #5050 (71c5604) into develop (2a20f0f) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop    #5050      +/-   ##
=============================================
- Coverage      49.44%   49.42%   -0.02%     
+ Complexity      4124     4123       -1     
=============================================
  Files            733      733              
  Lines          26051    26051              
  Branches        3219     3219              
=============================================
- Hits           12880    12876       -4     
- Misses         11794    11800       +6     
+ Partials        1377     1375       -2     
Impacted Files Coverage Δ
.../java/io/seata/server/coordinator/DefaultCore.java 47.92% <0.00%> (ø)
...rage/redis/store/RedisTransactionStoreManager.java 72.06% <0.00%> (-2.09%) ⬇️
...very/registry/zk/ZookeeperRegisterServiceImpl.java 61.76% <0.00%> (+0.73%) ⬆️
...n/src/main/java/io/seata/common/util/IdWorker.java 83.33% <0.00%> (+6.25%) ⬆️

Copy link
Contributor

@tuwenlin tuwenlin left a comment

Choose a reason for hiding this comment

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

LGTM

@Bughue
Copy link
Contributor

Bughue commented Nov 4, 2022

LGTM

Copy link
Member

@jsbxyyx jsbxyyx left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -32,6 +32,7 @@
- [[#5004](https://github.com/seata/seata/pull/5004)] 修复mysql update join行数据重复的问题
- [[#5033](https://github.com/seata/seata/pull/5033)] 修复InsertOnDuplicateUpdate的SQL语句中无插入列字段导致的空指针问题
- [[#5038](https://github.com/seata/seata/pull/5038)] 修复SagaAsyncThreadPoolProperties冲突问题
- [[#5050](https://github.com/seata/seata/pull/5050)] 修复Saga模式下全局状态未正确更改成Commited
Copy link
Contributor

Choose a reason for hiding this comment

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

fix一下typo,Committed

@@ -30,6 +30,7 @@ Add changes here for all PR submitted to the develop branch.
- [[#5004](https://github.com/seata/seata/pull/5004)] fix duplicate image row for update join
- [[#5033](https://github.com/seata/seata/pull/5033)] fix null exception when sql columns is empty for insert on duplicate
- [[#5038](https://github.com/seata/seata/pull/5038)] remove @EnableConfigurationProperties({SagaAsyncThreadPoolProperties.class})
- [[#5050](https://github.com/seata/seata/pull/5050)] fix global session is not change to Committed
Copy link
Contributor

Choose a reason for hiding this comment

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

英文版md和标题提现一下saga

@caohdgege caohdgege changed the title bugfix: global session is not change to Committed bugfix: global session is not change to Committed in saga mode Nov 4, 2022
Copy link
Contributor

@caohdgege caohdgege left a comment

Choose a reason for hiding this comment

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

LGTM

@funky-eyes funky-eyes merged commit 734c6bd into apache:develop Nov 4, 2022
Copy link
Member

@slievrly slievrly left a comment

Choose a reason for hiding this comment

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

LGTM
There is a follow-up issue that needs attention, success is always true in AT transaction mode.

zw201913 pushed a commit to zw201913/seata that referenced this pull request Nov 7, 2022
* '1103' of https://github.com/zw201913/seata:
  optimize: remove useless code (apache#5047)
  bugfix: fix startup failure of Server1.5.2 by using OpenJDK 11 (apache#4874)
  bugfix: insert value is all parsed as string in insert on duplicate  (apache#5028)
  bugfix: global session is not change to Committed in saga mode (apache#5050)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module/server server module type: bug Category issues or prs related to bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

store.mode=db 事务结束后globalsession的状态未正确修改为commited
8 participants