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: some about rpc optimize. #1935

Merged
merged 31 commits into from
Feb 8, 2020
Merged

Conversation

objcoding
Copy link
Contributor

Ⅰ. Describe what this PR did

1.pull away from the handler, Follow a single principle of responsibility.
2.Reorganize dependencies.
3.create RpcServerBootstrap.
4.(TODO)create processor to handle channelread() logic.

Ⅱ. 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 Nov 26, 2019

Codecov Report

Merging #1935 into develop will increase coverage by 0.14%.
The diff coverage is 25%.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop    #1935      +/-   ##
=============================================
+ Coverage      53.64%   53.78%   +0.14%     
  Complexity      2619     2619              
=============================================
  Files            491      491              
  Lines          15378    15382       +4     
  Branches        1729     1760      +31     
=============================================
+ Hits            8249     8273      +24     
- Misses          6322     6325       +3     
+ Partials         807      784      -23
Impacted Files Coverage Δ Complexity Δ
...tatelang/domain/impl/StateMachineInstanceImpl.java 0% <0%> (ø) 0 <0> (ø) ⬇️
.../io/seata/common/exception/FrameworkErrorCode.java 93.75% <100%> (+0.13%) 3 <0> (ø) ⬇️
...buf/convertor/BranchRollbackResponseConvertor.java 100% <0%> (+2.94%) 3% <0%> (ø) ⬇️
...tobuf/convertor/BranchCommitResponseConvertor.java 100% <0%> (+3.03%) 3% <0%> (ø) ⬇️
...buf/convertor/GlobalRollbackResponseConvertor.java 100% <0%> (+3.22%) 3% <0%> (ø) ⬇️
...tobuf/convertor/GlobalStatusResponseConvertor.java 100% <0%> (+3.33%) 3% <0%> (ø) ⬇️
...tobuf/convertor/GlobalCommitResponseConvertor.java 100% <0%> (+3.33%) 3% <0%> (ø) ⬇️
...rotobuf/convertor/RegisterRMResponseConvertor.java 82.75% <0%> (+3.44%) 3% <0%> (ø) ⬇️
...rotobuf/convertor/RegisterTMResponseConvertor.java 82.75% <0%> (+3.44%) 3% <0%> (ø) ⬇️
...uf/convertor/GlobalLockQueryResponseConvertor.java 100% <0%> (+3.84%) 3% <0%> (ø) ⬇️
... and 13 more

@slievrly slievrly added this to the 1.1.0 milestone Feb 5, 2020
# Conflicts:
#	core/src/main/java/io/seata/core/rpc/DefaultServerMessageListenerImpl.java
#	core/src/main/java/io/seata/core/rpc/netty/AbstractRpcRemotingClient.java
#	core/src/main/java/io/seata/core/rpc/netty/AbstractRpcRemotingServer.java
@objcoding
Copy link
Contributor Author

@slievrly Conflict resolved.

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.

check code is ok.

  1. Remove the sender parameter in the transaction message processing interface

  2. Separate channelHandler

  3. Separate netty start-stop code from server bootstrap

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.

the integration commit and rollback test results were ok.

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.

@xingfudeshi xingfudeshi merged commit 4274e56 into apache:develop Feb 8, 2020
booogu pushed a commit to booogu/seata that referenced this pull request Feb 12, 2020
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.

None yet

7 participants