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

Support keep alive clients console #4816

Open
wants to merge 20 commits into
base: develop
Choose a base branch
from

Conversation

TheR1sing3un
Copy link
Member

  • I have registered the PR changes.

Ⅰ. Describe what this PR did

SummerCode2022:#4621 (comment)

  1. add back-end interface for console to query clients(keep-alive-connections, TM or RM).
  2. add back-end web interface for console to offline target client(keep-alive-connection, TM or RM).
  3. refactor some class and functions about console module.

Ⅱ. Does this pull request fix one issue?

Ⅲ. Why don't you add test cases (unit test/integration test)?

unit test

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

TheR1sing3un and others added 8 commits July 26, 2022 02:52
add view about keep-alive-clients
1. add logic about offline keep-alive-clients.
2. refactor Result and so
on.
3. add ConsoleException and ConsoleExceptionHandler.
1. add comments.
2. add NetUtilTest#TestIsCorrectFormatAddress

Signed-off-by: TheR1sing3un <[email protected]>
1. format changed code

Signed-off-by: TheR1sing3un <[email protected]>
1. format changed code

Signed-off-by: TheR1sing3un <[email protected]>
1. format imports

Signed-off-by: TheR1sing3un <[email protected]>
@TheR1sing3un
Copy link
Member Author

@slievrly PING! Please check!

@codecov-commenter
Copy link

codecov-commenter commented Aug 6, 2022

Codecov Report

Merging #4816 (84b5f18) into develop (dac8aa8) will decrease coverage by 0.43%.
The diff coverage is 3.30%.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop    #4816      +/-   ##
=============================================
- Coverage      48.78%   48.34%   -0.44%     
- Complexity      4081     4087       +6     
=============================================
  Files            734      740       +6     
  Lines          25855    26098     +243     
  Branches        3191     3214      +23     
=============================================
+ Hits           12614    12618       +4     
- Misses         11899    12134     +235     
- Partials        1342     1346       +4     
Impacted Files Coverage Δ
...re/src/main/java/io/seata/core/rpc/ClientInfo.java 0.00% <0.00%> (ø)
...n/java/io/seata/core/rpc/netty/ChannelManager.java 0.00% <0.00%> (ø)
...seata/server/console/param/ClientOfflineParam.java 0.00% <0.00%> (ø)
...o/seata/server/console/param/ClientQueryParam.java 0.00% <0.00%> (ø)
...main/java/io/seata/server/console/vo/ClientVO.java 0.00% <0.00%> (ø)
...o/seata/server/console/impl/ClientServiceImpl.java 1.66% <1.66%> (ø)
...ta/server/console/controller/ClientController.java 33.33% <33.33%> (ø)
...on/src/main/java/io/seata/common/util/NetUtil.java 58.94% <77.77%> (+1.97%) ⬆️
...n/src/main/java/io/seata/common/util/IdWorker.java 77.08% <0.00%> (-6.25%) ⬇️
...rage/redis/store/RedisTransactionStoreManager.java 65.72% <0.00%> (-1.42%) ⬇️
... and 3 more

@slievrly slievrly added the summer2022 summer code 2022 label Aug 19, 2022
* @return true if the given address match the format ip:host
*/
public static boolean isCorrectFormatAddress(String address) {
if (address.split(":").length == 2 && isValidIp(address.split(":")[0], true) && isPort(address.split(":")[1])) {
Copy link
Member

Choose a reason for hiding this comment

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

Ipv6 needs to be considered

@wangliang181230 wangliang181230 changed the base branch from develop to summer-code-2022 September 19, 2022 01:59
@wangliang181230 wangliang181230 changed the base branch from summer-code-2022 to develop September 19, 2022 02:07
@wangliang181230 wangliang181230 added this to the Summer Code 2022 milestone Nov 30, 2022
@CLAassistant
Copy link

CLAassistant commented Dec 12, 2022

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
summer2022 summer code 2022
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants