-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
Conversation
…cServer init exception.
1.pull away from the handler, Follow a single principle of responsibility. 2.Reorganize dependencies. 3.RpcServerBootstrap. 4.(TODO)create processor to handle channelread() logic.
1.pull away from the handler, Follow a single principle of responsibility. 2.Reorganize dependencies. 3.RpcServerBootstrap. 4.(TODO)create processor to handle channelread() logic.
core/src/main/java/io/seata/core/rpc/netty/AbstractRpcRemotingClient.java
Outdated
Show resolved
Hide resolved
Codecov Report
@@ 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
|
# 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
@slievrly Conflict resolved. |
There was a problem hiding this 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.
-
Remove the sender parameter in the transaction message processing interface
-
Separate channelHandler
-
Separate netty start-stop code from server bootstrap
There was a problem hiding this 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Ⅰ. 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