From dev-return-92729-archive-asf-public=cust-asf.ponee.io@kafka.apache.org Wed Mar 28 00:34:04 2018 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 [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id BFBCB18064E for ; Wed, 28 Mar 2018 00:34:03 +0200 (CEST) Received: (qmail 25480 invoked by uid 500); 27 Mar 2018 22:34:02 -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 25468 invoked by uid 99); 27 Mar 2018 22:34:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Mar 2018 22:34:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id DCCC21A09D2 for ; Tue, 27 Mar 2018 22:34:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -101.511 X-Spam-Level: X-Spam-Status: No, score=-101.511 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id m1SPlE6Vnbs8 for ; Tue, 27 Mar 2018 22:34:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 007125FAE6 for ; Tue, 27 Mar 2018 22:34:01 +0000 (UTC) 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 8489AE0DE7 for ; Tue, 27 Mar 2018 22:34: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 3A8A72150E for ; Tue, 27 Mar 2018 22:34:00 +0000 (UTC) Date: Tue, 27 Mar 2018 22:34:00 +0000 (UTC) From: "Mariam John (JIRA)" To: dev@kafka.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (KAFKA-6720) Inconsistent Kafka Streams behaviour when topic does not 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-6720?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Mariam John resolved KAFKA-6720. -------------------------------- Resolution: Duplicate This is similar to KAFKA-6437. > Inconsistent Kafka Streams behaviour when topic does not exist > -------------------------------------------------------------- > > Key: KAFKA-6720 > URL: https://issues.apache.org/jira/browse/KAFKA-6720 > Project: Kafka > Issue Type: Bug > Components: streams > Affects Versions: 1.0.1 > Reporter: Daniel Wojda > Priority: Minor > > When Kafka Streams starts it reads metadata about topics used in topology > and it's partitions. If topology of that stream contains stateful operat= ion like #join, and a topic does not exist [TopologyBuilderException|https:= //github.com/apache/kafka/blob/5bdfbd13524da667289cacb774bb92df36a253f2/str= eams/src/main/java/org/apache/kafka/streams/processor/internals/StreamParti= tionAssignor.java#L719] will be thrown. > In case of streams with simple topology with stateless operations only, l= ike #mapValue, and=C2=A0topic does not exist, Kafka Streams does not throw = any exception, just logs a warning: > ["log.warn("No partitions found for topic {}", topic);"|https://github.c= om/apache/kafka/blob/5bdfbd13524da667289cacb774bb92df36a253f2/streams/src/m= ain/java/org/apache/kafka/streams/processor/internals/StreamPartitionAssign= or.java#L435]=C2=A0 > I believe the behaviour of Kafka Streams in both cases should be the same= , and it should throw TopologyBuilderException. > I am more than happy to prepare a Pull Request if=C2=A0it is a valid issu= e. > =C2=A0 > =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005)