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 5EB25200B48 for ; Mon, 4 Jul 2016 04:21:12 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5D25D160A71; Mon, 4 Jul 2016 02:21:12 +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 A567C160A6B for ; Mon, 4 Jul 2016 04:21:11 +0200 (CEST) Received: (qmail 72222 invoked by uid 500); 4 Jul 2016 02:21:10 -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 72211 invoked by uid 99); 4 Jul 2016 02:21:10 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jul 2016 02:21:10 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 58DEEE0278; Mon, 4 Jul 2016 02:21:10 +0000 (UTC) From: vahidhashemian To: dev@kafka.apache.org Reply-To: dev@kafka.apache.org References: In-Reply-To: Subject: [GitHub] kafka pull request #1572: KAFKA-3854: Fix issues with new consumer's subsequ... Content-Type: text/plain Message-Id: <20160704022110.58DEEE0278@git1-us-west.apache.org> Date: Mon, 4 Jul 2016 02:21:10 +0000 (UTC) archived-at: Mon, 04 Jul 2016 02:21:12 -0000 GitHub user vahidhashemian reopened a pull request: https://github.com/apache/kafka/pull/1572 KAFKA-3854: Fix issues with new consumer's subsequent regex (pattern) subscriptions This patch fixes two issues: 1. Subsequent regex subscriptions fail with the new consumer. 2. Subsequent regex subscriptions would not immediately refresh metadata to change the subscription of the new consumer and trigger a rebalance. The final note on the JIRA stating that a later created topic that matches a consumer's subscription pattern would not be assigned to the consumer upon creation seems to be as designed. A repeat `subscribe()` to the same pattern or some wait time until the next automatic metadata refresh would handle that case. An integration test was also added to verify these issues are fixed with this PR. You can merge this pull request into a Git repository by running: $ git pull https://github.com/vahidhashemian/kafka KAFKA-3854 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/1572.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 #1572 ---- commit 55423ce803081ead713c9b25655c9d859558177d Author: Vahid Hashemian Date: 2016-06-16T21:19:32Z KAFKA-3854: Fix issues with new consumer's subsequent regex (pattern) subscriptions This patch fixes two issues: 1. Subsequent regex subscriptions fail with the new consumer. 2. Subsequent regex subscriptions would not actually refresh metadata and change the subscription of the new consumer nor they would trigger a rebalance. The final note on the JIRA stating that a later created topic that matches a consumer's subscription pattern would not be assigned to the consumer upon creation seems to be as designed. A repeat subscribe() to the same pattern would be needed to handle that case. Unit tests for regex subscriptions will be handled in KAFKA-3897. ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---