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

optimize:show the applicationId when register TM #1980

Merged
merged 4 commits into from
Dec 10, 2019
Merged

optimize:show the applicationId when register TM #1980

merged 4 commits into from
Dec 10, 2019

Conversation

lightClouds917
Copy link
Contributor

Ⅰ. Describe what this PR did

optimize:show the applicationId when register TM
when register TM,we do not know which application register,we just know the ip and port like this:
io.seata.core.rpc.DefaultServerMessageListenerImpl.onRegTmMessage:133 -checkAuth for client:192.168.xx.xx:10984 vgroup:fsp_tx_group ok
When we monitor the server log,it is very unfriendly,we want to know which application had regiested,or remove,like this:
io.seata.core.rpc.DefaultServerMessageListenerImpl.onRegTmMessage:133 -checkAuth for client:192.168.xx.xx:10984 vgroup:fsp_tx_group applicationId:user-server ok

Ⅱ. 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-io
Copy link

codecov-io commented Dec 4, 2019

Codecov Report

Merging #1980 into develop will decrease coverage by 0.01%.
The diff coverage is 0%.

Impacted file tree graph

@@             Coverage Diff              @@
##             develop   #1980      +/-   ##
============================================
- Coverage      55.31%   55.3%   -0.02%     
+ Complexity      2439    2437       -2     
============================================
  Files            434     434              
  Lines          14469   14469              
  Branches        1706    1706              
============================================
- Hits            8004    8002       -2     
  Misses          5743    5743              
- Partials         722     724       +2
Impacted Files Coverage Δ Complexity Δ
...ata/core/rpc/DefaultServerMessageListenerImpl.java 0% <0%> (ø) 0 <0> (ø) ⬇️
...in/java/io/seata/server/session/GlobalSession.java 84.54% <0%> (-0.49%) 67% <0%> (-1%)
...o/seata/server/coordinator/DefaultCoordinator.java 48.01% <0%> (-0.4%) 27% <0%> (-1%)

Copy link
Member

@xingfudeshi xingfudeshi left a comment

Choose a reason for hiding this comment

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

LGTM.

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

@@ -133,8 +133,8 @@ public void onRegTmMessage(RpcMessage request, ChannelHandlerContext ctx, Server
Version.putChannelVersion(ctx.channel(), message.getVersion());
isSuccess = true;
if (LOGGER.isInfoEnabled()) {
LOGGER.info(String.format("checkAuth for client:%s vgroup:%s ok", ipAndPort,
message.getTransactionServiceGroup()));
LOGGER.info("checkAuth for client:{},vgroup:{},applicationId:{}",
Copy link
Member

Choose a reason for hiding this comment

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

Here you need a status to indicate that it is authenticated OK.

@xingfudeshi xingfudeshi merged commit aa85799 into apache:develop Dec 10, 2019
@wangliang181230 wangliang181230 added this to the 1.0.0 milestone Aug 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants