From dev-return-105867-archive-asf-public=cust-asf.ponee.io@kafka.apache.org Thu Jul 18 20:42:03 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 9D67218063F for ; Thu, 18 Jul 2019 22:42:03 +0200 (CEST) Received: (qmail 20710 invoked by uid 500); 18 Jul 2019 20:42:01 -0000 Mailing-List: contact dev-help@kafka.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@kafka.apache.org Delivered-To: mailing list dev@kafka.apache.org Received: (qmail 20692 invoked by uid 99); 18 Jul 2019 20:42:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Jul 2019 20:42:01 +0000 Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 8590BE2EF6 for ; Thu, 18 Jul 2019 20:42:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 3D68B26594 for ; Thu, 18 Jul 2019 20:42:00 +0000 (UTC) Date: Thu, 18 Jul 2019 20:42:00 +0000 (UTC) From: "Jason Gustafson (JIRA)" To: dev@kafka.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (KAFKA-8053) kafka-topics.sh gives confusing error message when the topic doesn't exist MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KAFKA-8053?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Jason Gustafson resolved KAFKA-8053. ------------------------------------ Resolution: Fixed Fix Version/s: 2.3.1 2.4.0 This was resolved by=C2=A0 > kafka-topics.sh gives confusing error message when the topic doesn't exis= t > -------------------------------------------------------------------------= - > > Key: KAFKA-8053 > URL: https://issues.apache.org/jira/browse/KAFKA-8053 > Project: Kafka > Issue Type: Bug > Reporter: Jakub Scholz > Assignee: Tirtha Chatterjee > Priority: Minor > Fix For: 2.4.0, 2.3.1 > > > The kafka-topics.sh utility gives a confusing message when the topic it i= s called with doesn't exist or when no topics exist at all: > {code} > bin/kafka-topics.sh --zookeeper localhost:2181 --describe --topic xxx > Error while executing topic command : Topics in [] does not exist > [2019-03-06 13:26:33,982] ERROR java.lang.IllegalArgumentException: Topic= s in [] does not exist > at kafka.admin.TopicCommand$.kafka$admin$TopicCommand$$ensureTopicExists(= TopicCommand.scala:416) > at kafka.admin.TopicCommand$ZookeeperTopicService.describeTopic(TopicComm= and.scala:332) > at kafka.admin.TopicCommand$.main(TopicCommand.scala:66) > at kafka.admin.TopicCommand.main(TopicCommand.scala) > (kafka.admin.TopicCommand$) > {code} > It tries to list the topics, but because=C2=A0list of topics is always em= pty,=C2=A0it always prints just `[]`. The error message should be more usef= ul and instead list the topic passed by the user as the parameter or not tr= y to list anything at all. > =C2=A0 > =C2=A0 > =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.14#76016)