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 8FFF5200AE4 for ; Thu, 26 May 2016 00:55:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8E75A160A2E; Wed, 25 May 2016 22:55:09 +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 D579C160A29 for ; Thu, 26 May 2016 00:55:08 +0200 (CEST) Received: (qmail 46624 invoked by uid 500); 25 May 2016 22:13:13 -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 46611 invoked by uid 99); 25 May 2016 22:13:12 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 May 2016 22:13:12 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id D0BFB2C1F5C for ; Wed, 25 May 2016 22:13:12 +0000 (UTC) Date: Wed, 25 May 2016 22:13:12 +0000 (UTC) From: "Guozhang Wang (JIRA)" To: dev@kafka.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (KAFKA-2720) Periodic purging groups in the coordinator MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 25 May 2016 22:55:09 -0000 [ https://issues.apache.org/jira/browse/KAFKA-2720?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Guozhang Wang updated KAFKA-2720: --------------------------------- Description: Currently the coordinator removes the group (i.e. both removing it from the cache and writing the tombstone message on its local replica without waiting for ack) once it becomes an empty group. This can lead to a few issues such as 1) group removal and creation churns when a group with very few members are being rebalanced, 2) if the local write is failed / not propagated to other followers, they can only be removed again when a new coordinator is migrated and detects the group has no members already. We could instead piggy-back the periodic offset expiration along with the group purging as well which removes any groups that had no corresponding offsets in the cache any more. was: Currently the coordinator removes the group (i.e. both removing it from the cache and writing the tombstone message on its local replica without waiting for ack) once it becomes an empty group. This can lead to a few issues such as 1) group removal and creation churns when a group with very few members are being rebalanced, 2) if the local write is failed / not propagated to other followers, they can only be removed again when a new coordinator is migrated and detects the group has no members already. We could instead piggy-back the periodic offset expiration along with the group purging as well which removes any groups that had no members already. > Periodic purging groups in the coordinator > ------------------------------------------ > > Key: KAFKA-2720 > URL: https://issues.apache.org/jira/browse/KAFKA-2720 > Project: Kafka > Issue Type: Sub-task > Components: consumer > Reporter: Guozhang Wang > Assignee: Jason Gustafson > Fix For: 0.10.1.0 > > > Currently the coordinator removes the group (i.e. both removing it from the cache and writing the tombstone message on its local replica without waiting for ack) once it becomes an empty group. > This can lead to a few issues such as 1) group removal and creation churns when a group with very few members are being rebalanced, 2) if the local write is failed / not propagated to other followers, they can only be removed again when a new coordinator is migrated and detects the group has no members already. > We could instead piggy-back the periodic offset expiration along with the group purging as well which removes any groups that had no corresponding offsets in the cache any more. -- This message was sent by Atlassian JIRA (v6.3.4#6332)