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

after drop host, should delete the storage from show hosts #3584

Closed
HarrisChu opened this issue Dec 29, 2021 · 1 comment
Closed

after drop host, should delete the storage from show hosts #3584

HarrisChu opened this issue Dec 29, 2021 · 1 comment
Assignees
Labels
type/bug Type: something is unexpected
Milestone

Comments

@HarrisChu
Copy link
Contributor

(root@nebula) [(none)]> drop hosts 172.28.2.1:9779
Execution succeeded (time spent 2333/7137 us)

(root@nebula) [(none)]> show hosts
+--------------+------+-----------+--------------+----------------------+------------------------+
| Host         | Port | Status    | Leader count | Leader distribution  | Partition distribution |
+--------------+------+-----------+--------------+----------------------+------------------------+
| "172.28.2.1" | 9779 | "OFFLINE" | 0            | "No valid partition" | "No valid partition"   |
| "172.28.2.2" | 9779 | "ONLINE"  | 0            | "No valid partition" | "No valid partition"   |
| "172.28.2.3" | 9779 | "ONLINE"  | 0            | "No valid partition" | "No valid partition"   |
| "Total"      |      |           | 0            |                      |                        |
+--------------+------+-----------+--------------+----------------------+------------------------+
Got 4 rows (time spent 1314/5476 us)


(root@nebula) [(none)]> show zones
+--------------------------------+--------------+------+
| Name                           | Host         | Port |
+--------------------------------+--------------+------+
| "default_zone_172.28.2.2_9779" | "172.28.2.2" | 9779 |
| "default_zone_172.28.2.3_9779" | "172.28.2.3" | 9779 |
+--------------------------------+--------------+------+
Got 2 rows (time spent 1282/14776 us)

Wed, 29 Dec 2021 11:47:00 CST

excepted result:

  1. do not display this host in show hosts.
@HarrisChu HarrisChu added the type/bug Type: something is unexpected label Dec 29, 2021
@Sophie-Xie Sophie-Xie added this to the v3.0.0 milestone Dec 29, 2021
@HarrisChu
Copy link
Contributor Author

#3583

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Type: something is unexpected
Projects
None yet
Development

No branches or pull requests

3 participants