Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@YvCeung
Copy link
Contributor

@YvCeung YvCeung commented Aug 28, 2025

Ⅰ. Describe what this PR did

I found that when integrating with Seata's built-in NamingServer, the refreshToken method in the register process incorrectly uses the TC address as its parameter. In fact, the token should be refreshed using the NamingServer address itself. I fixed this by updating the method signature and calls to refreshToken(String namingServerAddress) to correctly reflect the actual parameter meaning.

对接自身的namingServer时,refreshToken方法的形参字面意思上应该是注册中心本身的地址 而不是TC 地址

private static void refreshToken(String tcAddress) throws RetryableException

Ⅱ. 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

@codecov
Copy link

codecov bot commented Aug 28, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 61.22%. Comparing base (2155a0f) to head (3b33e4e).
⚠️ Report is 1 commits behind head on 2.x.

Additional details and impacted files
@@             Coverage Diff              @@
##                2.x    #7608      +/-   ##
============================================
+ Coverage     61.17%   61.22%   +0.04%     
  Complexity      654      654              
============================================
  Files          1310     1310              
  Lines         49567    49567              
  Branches       5836     5836              
============================================
+ Hits          30322    30345      +23     
+ Misses        16542    16514      -28     
- Partials       2703     2708       +5     
Files with missing lines Coverage Δ
.../namingserver/NamingserverRegistryServiceImpl.java 43.67% <100.00%> (+12.02%) ⬆️

... and 7 files with indirect coverage changes

Impacted file tree graph

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@YvCeung YvCeung closed this Aug 29, 2025
@YvCeung YvCeung reopened this Aug 29, 2025
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 changed the title optimize:modify the parameter name in refreshToken method optimize: modify the parameter name in refreshToken method Aug 29, 2025
@funky-eyes funky-eyes added this to the 2.6.0 milestone Aug 29, 2025
@funky-eyes funky-eyes merged commit a880678 into apache:2.x Aug 29, 2025
18 of 21 checks passed
slievrly pushed a commit to slievrly/fescar that referenced this pull request Oct 21, 2025
YvCeung added 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants