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

could not drop an invalid hosts #3728

Closed
HarrisChu opened this issue Jan 14, 2022 · 0 comments · Fixed by #3739
Closed

could not drop an invalid hosts #3728

HarrisChu opened this issue Jan 14, 2022 · 0 comments · Fixed by #3739
Assignees
Labels
type/bug Type: something is unexpected
Milestone

Comments

@HarrisChu
Copy link
Contributor

HarrisChu commented Jan 14, 2022

2 cases:

case A

(root@nebula) [(none)]> add HOSTS 127.0.0.1:17097;DROP HOSTS 127.0.0.1:17097
[ERROR (-1005)]: No hosts!

Fri, 14 Jan 2022 18:40:43 CST

case B

(root@nebula) [(none)]> add hosts "invalid":977
Execution succeeded (time spent 3877/12775 us)

Fri, 14 Jan 2022 18:49:52 CST

(root@nebula) [(none)]>
(root@nebula) [(none)]>
(root@nebula) [(none)]>
(root@nebula) [(none)]> show hosts
+-------------+-------+-----------+--------------+----------------------+------------------------+
| Host        | Port  | Status    | Leader count | Leader distribution  | Partition distribution |
+-------------+-------+-----------+--------------+----------------------+------------------------+
| "127.0.0.1" | 12097 | "ONLINE"  | 10           | "test:10"            | "test:10"              |
| "127.0.0.1" | 17097 | "ONLINE"  | 0            | "No valid partition" | "No valid partition"   |
| "invalid"   | 9779  | "OFFLINE" | 0            | "No valid partition" | "No valid partition"   |
| "invalid"   | 977   | "OFFLINE" | 0            | "No valid partition" | "No valid partition"   |
| "Total"     |       |           | 10           | "test:10"            | "test:10"              |
+-------------+-------+-----------+--------------+----------------------+------------------------+
Got 5 rows (time spent 2458/8964 us)

Fri, 14 Jan 2022 18:49:55 CST

(root@nebula) [(none)]> drop hosts "invalid":977
[ERROR (-1005)]: No hosts!

Fri, 14 Jan 2022 18:50:00 CST

when drop hosts, if there's no heartbeat yet, should drop this host successfully.

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

Successfully merging a pull request may close this issue.

3 participants