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 93902200D48 for ; Wed, 29 Nov 2017 20:28:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 92103160C16; Wed, 29 Nov 2017 19:28:05 +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 D8C76160C02 for ; Wed, 29 Nov 2017 20:28:04 +0100 (CET) Received: (qmail 531 invoked by uid 500); 29 Nov 2017 19:28:04 -0000 Mailing-List: contact jira-help@kafka.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@kafka.apache.org Delivered-To: mailing list jira@kafka.apache.org Received: (qmail 517 invoked by uid 99); 29 Nov 2017 19:28:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Nov 2017 19:28:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 347B21807B1 for ; Wed, 29 Nov 2017 19:28:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 5NhtGS51_-iY for ; Wed, 29 Nov 2017 19:28:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 43D855F286 for ; Wed, 29 Nov 2017 19:28: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 7CDF5E0A29 for ; Wed, 29 Nov 2017 19:28: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 34EB321054 for ; Wed, 29 Nov 2017 19:28:00 +0000 (UTC) Date: Wed, 29 Nov 2017 19:28:00 +0000 (UTC) From: "Matthias J. Sax (JIRA)" To: jira@kafka.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KAFKA-6282) exactly_once semantics breaks demo application MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 29 Nov 2017 19:28:05 -0000 [ https://issues.apache.org/jira/browse/KAFKA-6282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16271398#comment-16271398 ] Matthias J. Sax commented on KAFKA-6282: ---------------------------------------- Transactions by default require a replication factor of three (for an internally used topic -- not for user topics). Thus, you will need three brokers. Can you try this? Or reconfigure the broker with a different replication factor for the internal topic used to coordinate transactions (config {{transaction.state.log.replication.factor}}). > exactly_once semantics breaks demo application > ---------------------------------------------- > > Key: KAFKA-6282 > URL: https://issues.apache.org/jira/browse/KAFKA-6282 > Project: Kafka > Issue Type: Bug > Components: streams > Affects Versions: 0.11.0.0, 1.0.0 > Environment: Tested on i7+24GB Ubuntu16.04 and i7+8GB Windows 7, with cluster 1.0.0 and 0.11.0.0 and streams 1.0.0 and 0.11.0.0 > Reporter: Romans Markuns > Attachments: WordCountDemo.java, server.properties > > > +What I try to achieve+ > Do successful run of Kafka streams app with setting "processing.guarantee" set to "exactly_once" > +How+ > Use Kafka quickstart example (https://kafka.apache.org/10/documentation/streams/quickstart) and modify only configuration parameters. > Things I've changed: > 1) Add one line to WordCountDemo: > {code:java} > props.put(StreamsConfig.PROCESSING_GUARANTEE_CONFIG, StreamsConfig.EXACTLY_ONCE); > {code} > 2) Modify server.properties to be the same as we use in QA: set broker id to 1, allow deleting topics via admin client and set initial rebalance delay to 3 s. > +What I expect+ > Modified demo app works exactly as the original as presented in link above. > +What I get+ > 1) Original app works fine. Output topic after each line is submitted via console producer. > 2) Modified app does not process topic record after it is submitted via console producer. Streams remain in state REBALANCING, no errors on warning printed. MAIN thread forever blocks waiting TransactionCoordinator response (CountdownLatch.await()) and this message getting printed: [kafka-producer-network-thread | streams-wordcount-client-StreamThread-1-0_0-producer] DEBUG org.apache.kafka.clients.producer.internals.TransactionManager - [Producer clientId=streams-wordcount-client-StreamThread-1-0_0-producer, transactionalId=streams-wordcount-0_0] Enqueuing transactional request (type=FindCoordinatorRequest, coordinatorKey=streams-wordcount-0_0, coordinatorType=TRANSACTION) -- This message was sent by Atlassian JIRA (v6.4.14#64029)