-
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: use iterator to remove timeout future. #1920
Conversation
…cServer init exception.
Codecov Report
@@ Coverage Diff @@
## develop #1920 +/- ##
=============================================
+ Coverage 55.33% 55.35% +0.01%
- Complexity 2405 2406 +1
=============================================
Files 428 428
Lines 14365 14361 -4
Branches 1695 1694 -1
=============================================
Hits 7949 7949
+ Misses 5698 5695 -3
+ Partials 718 717 -1
|
core/src/main/java/io/seata/core/rpc/netty/AbstractRpcRemoting.java
Outdated
Show resolved
Hide resolved
core/src/main/java/io/seata/core/rpc/netty/AbstractRpcRemoting.java
Outdated
Show resolved
Hide resolved
core/src/main/java/io/seata/core/rpc/netty/AbstractRpcRemoting.java
Outdated
Show resolved
Hide resolved
core/src/main/java/io/seata/core/rpc/netty/AbstractRpcRemoting.java
Outdated
Show resolved
Hide resolved
core/src/main/java/io/seata/core/rpc/netty/AbstractRpcRemoting.java
Outdated
Show resolved
Hide resolved
core/src/main/java/io/seata/core/rpc/netty/AbstractRpcRemoting.java
Outdated
Show resolved
Hide resolved
core/src/main/java/io/seata/core/rpc/netty/AbstractRpcRemoting.java
Outdated
Show resolved
Hide resolved
core/src/main/java/io/seata/core/rpc/netty/AbstractRpcRemoting.java
Outdated
Show resolved
Hide resolved
core/src/main/java/io/seata/core/rpc/netty/AbstractRpcRemoting.java
Outdated
Show resolved
Hide resolved
core/src/main/java/io/seata/core/rpc/netty/AbstractRpcRemoting.java
Outdated
Show resolved
Hide 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.
LGTM
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, because it is ConcurrentMap, why not just use for, but use iterator to loop?
core/src/main/java/io/seata/core/rpc/netty/AbstractRpcRemoting.java
Outdated
Show resolved
Hide resolved
config/seata-config-core/src/main/java/io/seata/config/ConfigurationFactory.java
Outdated
Show resolved
Hide resolved
ok,it has been modified. |
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
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.use iterator to remove timeout future.
2.print log when load extConfiguration.
Ⅱ. 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