You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Boyang Chen (Jira)" <ji...@apache.org> on 2020/02/24 05:36:00 UTC

[jira] [Commented] (KAFKA-6435) Application Reset Tool might delete incorrect internal topics

    [ https://issues.apache.org/jira/browse/KAFKA-6435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17043163#comment-17043163 ] 

Boyang Chen commented on KAFKA-6435:
------------------------------------

This is very an interesting scenario. However we currently have a `dry-run` mode before actually deleting the topics, so user could be alerted. Maybe we could also consider doing sth like a `negative prefix` which means the command should delete the app with prefix `app` but not `app-v2`

> Application Reset Tool might delete incorrect internal topics
> -------------------------------------------------------------
>
>                 Key: KAFKA-6435
>                 URL: https://issues.apache.org/jira/browse/KAFKA-6435
>             Project: Kafka
>          Issue Type: Bug
>          Components: streams, tools
>    Affects Versions: 1.0.0
>            Reporter: Matthias J. Sax
>            Priority: Major
>              Labels: bug
>
> The streams application reset tool, deletes all topic that start with {{<application.id>-}}.
> If people have two versions of the same application and name them {{"app"}} and {{"app-v2"}}, resetting {{"app"}} would also delete the internal topics of {{"app-v2"}}.
> We either need to disallow the dash in the application ID, or improve the topic identification logic in the reset tool to fix this.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)