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

refactor: support close admin-cli client #2162

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

ruojieranyishen
Copy link
Collaborator

#2160

Current admin-cli client does not provide an interface to close replica server TCP connections.
And QueryAllNodesDiskInfo function is difficult to use. SendQueryDiskInfoRequest function is private.

What problem does this PR solve?

support close client, disconnect tcp link with replica server.

Tests
  • Manual test (add detailed scripts or steps below)
    The TCP connection to the replica server cannot be closed.
    image

After support close client,the persistent TCP connection between admincli and the replica server can be disconnected.
image

apache#2160

Current admin-cli client does not provide an interface to
close replica server TCP connections.
And the QueryAllNodesDiskInfo function is difficult to use.
SendQueryDiskInfoRequest function is private.
@ruojieranyishen ruojieranyishen changed the title Refactor(admin-cli): support close client refactor: support close admin-cli client Dec 3, 2024
admin-cli/executor/client.go Outdated Show resolved Hide resolved
admin-cli/executor/client.go Outdated Show resolved Hide resolved
admin-cli/executor/disk_info.go Outdated Show resolved Hide resolved
admin-cli/executor/client.go Outdated Show resolved Hide resolved
acelyc111
acelyc111 previously approved these changes Dec 10, 2024
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.

3 participants