Skip to content

Conversation

@lixingjia77
Copy link
Contributor

… client to continued use of expired tokens

  • I have registered the PR changes.

Ⅰ. Describe what this PR did

解决raft模式下,follower崩溃可能导致client继续使用过期令牌的问题
resolve issue in Raft model where follower crashes could lead client to continued use of expired tokens

Ⅱ. Does this pull request fix one issue?

fixes #6917

In RaftRegistryServiceImpl#refreshToken, the tokenTimeStamp is updated before the request to obtain the token is sent, and there is no check for whether the HTTP status is normal.

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

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

- [[#6899](https://github.com/apache/incubator-seata/pull/6899)] 修复file.conf打包后的读取
- [[#6890](https://github.com/apache/incubator-seata/pull/6890)] 修复saga设计json转标准json过程中: 子状态机补偿节点无法被识别
- [[#6907](https://github.com/apache/incubator-seata/pull/6907)] 修复Codecov未生成报告的问题
- [[#6925](https://github.com/apache/incubator-seata/pull/6925)] 修复Raft模式下,Follower崩溃可能导致Client继续使用过期令牌的问题
Copy link
Contributor

Choose a reason for hiding this comment

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

最下方的开发者信息也需要登记
The developer information at the bottom also requires registration.

- [[#6899](https://github.com/apache/incubator-seata/pull/6899)] fix file.conf read failed after package
- [[#6890](https://github.com/apache/incubator-seata/pull/6890)] fix designerJson to standardJson: subStateMachine compensateState cannot be recognized
- [[#6907](https://github.com/apache/incubator-seata/pull/6907)] fix the issue of Codecov not generating reports
- [[#6925](https://github.com/apache/incubator-seata/pull/6925)] fix the issue in Raft model a follower's crash may lead to the continued use of expired tokens
Copy link
Contributor

Choose a reason for hiding this comment

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

最下方的开发者信息也需要登记
The developer information at the bottom also requires registration.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for your reminder, the developer info has been added.

@funky-eyes funky-eyes added the type: bug Category issues or prs related to bug. label Oct 15, 2024
@codecov
Copy link

codecov bot commented Oct 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 51.79%. Comparing base (980ba23) to head (d5f2b5f).
Report is 1 commits behind head on 2.x.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##                2.x    #6925      +/-   ##
============================================
+ Coverage     51.72%   51.79%   +0.07%     
- Complexity     6456     6459       +3     
============================================
  Files          1122     1122              
  Lines         39857    39857              
  Branches       4668     4668              
============================================
+ Hits          20616    20645      +29     
+ Misses        17280    17252      -28     
+ Partials       1961     1960       -1     
Files with missing lines Coverage Δ
...scovery/registry/raft/RaftRegistryServiceImpl.java 17.69% <100.00%> (ø)

... and 10 files with indirect coverage changes

@funky-eyes funky-eyes added this to the 2.3.0 milestone Oct 15, 2024
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

@funky-eyes funky-eyes merged commit 1e26c91 into apache:2.x Oct 15, 2024
LQxdu added a commit to LQxdu/incubator-seata that referenced this pull request Oct 16, 2024
bugfix: resolve issue in Raft model a follower's crash may lead to the continued use of expired tokens (apache#6925)
YvCeung pushed a commit to YvCeung/incubator-seata that referenced this pull request Dec 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

first-time contributor first-time contributor module/discovery discovery module type: bug Category issues or prs related to bug.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

In the Raft model a follower's crash may lead to the continued use of expired tokens.

2 participants