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

Can't delete handler with same name as topic #1776

Closed
rconn01 opened this issue Jan 26, 2018 · 2 comments
Closed

Can't delete handler with same name as topic #1776

rconn01 opened this issue Jan 26, 2018 · 2 comments
Labels

Comments

@rconn01
Copy link

rconn01 commented Jan 26, 2018

If a topic handler is created that has the same name as the topic, there is no way to delete that topic handler. When I try to delete the handler the whole topic gets deleted. When the topic is created again the handler is still there.

Based on this code it seems that is intentional?

if topic == handler {
s.handleDeleteTopic(topic, w, r)
} else {
s.handleDeleteHandler(topic, handler, w, r)
}

If so what is the recommend way to delete a handler that was created with the same name as the topic.

@rconn01
Copy link
Author

rconn01 commented Feb 24, 2018

@nathanielc any ideas here. The best I was able to come up with (without code change) was delete the kapacitor storage db, and then just re-create all my definitions. If this intentional logic, perhaps some logic should be added that prevents creating a handler that has the same name as the topic

@cabrinha
Copy link

Wow, I just ran into this issue myself. Deleting the storage DB seems pretty dangerous and I'm not sure that cloud-hosted (enterprise) Kapacitor instances support it. Let's get some traction on this.

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

No branches or pull requests

3 participants