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

[ISSUE #4686] ZookeeperClientRegisterRepository active offline #4806

Merged
merged 4 commits into from
Jul 7, 2023
Merged

[ISSUE #4686] ZookeeperClientRegisterRepository active offline #4806

merged 4 commits into from
Jul 7, 2023

Conversation

xuziyang
Copy link
Contributor

@xuziyang xuziyang commented Jul 5, 2023

[ISSUE #4686] ZookeeperClientRegisterRepository active offline

@codecov-commenter
Copy link

codecov-commenter commented Jul 6, 2023

Codecov Report

Merging #4806 (015e3d0) into master (9e854dc) will increase coverage by 0.09%.
The diff coverage is 75.00%.

@@             Coverage Diff              @@
##             master    #4806      +/-   ##
============================================
+ Coverage     64.51%   64.60%   +0.09%     
- Complexity     8167     8173       +6     
============================================
  Files          1147     1147              
  Lines         33775    33773       -2     
  Branches       3009     3014       +5     
============================================
+ Hits          21789    21819      +30     
+ Misses        10260    10231      -29     
+ Partials       1726     1723       -3     
Impacted Files Coverage Δ
...eeper/ZookeeperClientServerRegisterRepository.java 91.66% <75.00%> (+2.47%) ⬆️

... and 10 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@loongs-zhang
Copy link
Member

need impl offline for ZookeeperClientRegisterRepository.

@xuziyang
Copy link
Contributor Author

xuziyang commented Jul 7, 2023

need impl offline for ZookeeperClientRegisterRepository.

I believe that there is no need to implement the offline () method for the following reasons:

When the client side service stops, ShenyuClientShutdownHook will be triggered, which will close zkClient. After closing zkClient, the registered URI information will naturally be deleted by zk, and shenyu admin can sense the offline of the service.

Copy link
Member

@loongs-zhang loongs-zhang left a comment

Choose a reason for hiding this comment

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

I saw the org.apache.shenyu.register.client.zookeeper.ZookeeperClientRegisterRepository#registerURI, you are correct.

@loongs-zhang loongs-zhang added this to the 2.6.0 milestone Jul 7, 2023
@loongs-zhang loongs-zhang merged commit 1b08ed0 into apache:master Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants