Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id CD6F9200BEB for ; Tue, 13 Dec 2016 19:14:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id CC126160B07; Tue, 13 Dec 2016 18:14:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 1F176160B32 for ; Tue, 13 Dec 2016 19:13:59 +0100 (CET) Received: (qmail 98690 invoked by uid 500); 13 Dec 2016 18:13:59 -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 98241 invoked by uid 99); 13 Dec 2016 18:13:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Dec 2016 18:13:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id B9CE62C03E3 for ; Tue, 13 Dec 2016 18:13:58 +0000 (UTC) Date: Tue, 13 Dec 2016 18:13:58 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: dev@kafka.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KAFKA-4532) StateStores can be connected to the wrong source topic resulting in incorrect metadata returned from IQ MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 13 Dec 2016 18:14:01 -0000 [ https://issues.apache.org/jira/browse/KAFKA-4532?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15745809#comment-15745809 ] ASF GitHub Bot commented on KAFKA-4532: --------------------------------------- GitHub user dguy opened a pull request: https://github.com/apache/kafka/pull/2250 KAFKA-4532: StateStores can be connected to the wrong source topic resulting in incorrect metadata returned from Interactive Queries When building a topology with tables and StateStores, the StateStores are mapped to the source topic names. This map is retrieved via TopologyBuilder.stateStoreNameToSourceTopics() and is used in Interactive Queries to find the source topics and partitions when resolving the partitions that particular keys will be in. There is an issue where by this mapping for a table that is originally created with builder.table("topic", "table");, and then is subsequently used in a join, is changed to the join topic. This is because the mapping is updated during the call to topology.connectProcessorAndStateStores(..). In the case that the stateStoreNameToSourceTopics Map already has a value for the state store name it should not update the Map. You can merge this pull request into a Git repository by running: $ git pull https://github.com/dguy/kafka kafka-4532 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/2250.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #2250 ---- commit 45833be3ca1b6f8ac86f516cae4ff1b6571089e8 Author: Damian Guy Date: 2016-12-13T18:06:38Z state store name to topic mapping incorrect ---- > StateStores can be connected to the wrong source topic resulting in incorrect metadata returned from IQ > ------------------------------------------------------------------------------------------------------- > > Key: KAFKA-4532 > URL: https://issues.apache.org/jira/browse/KAFKA-4532 > Project: Kafka > Issue Type: Bug > Components: streams > Affects Versions: 0.10.1.0, 0.10.1.1, 0.10.2.0 > Reporter: Damian Guy > Assignee: Damian Guy > Fix For: 0.10.2.0 > > > When building a topology with tables and StateStores, the StateStores are mapped to the source topic names. This map is retrieved via {{TopologyBuilder.stateStoreNameToSourceTopics()}} and is used in Interactive Queries to find the source topics and partitions when resolving the partitions that particular keys will be in. > There is an issue where by this mapping for a table that is originally created with {{builder.table("topic", "table");}}, and then is subsequently used in a join, is changed to the join topic. This is because the mapping is updated during the call to {{topology.connectProcessorAndStateStores(..)}}. > In the case that the {{stateStoreNameToSourceTopics}} Map already has a value for the state store name it should not update the Map. -- This message was sent by Atlassian JIRA (v6.3.4#6332)