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 CA945200B32 for ; Thu, 23 Jun 2016 19:33:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C96DB160A59; Thu, 23 Jun 2016 17:33:22 +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 443E0160A35 for ; Thu, 23 Jun 2016 19:33:22 +0200 (CEST) Received: (qmail 29163 invoked by uid 500); 23 Jun 2016 17:33:16 -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 29144 invoked by uid 99); 23 Jun 2016 17:33:16 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jun 2016 17:33:16 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 2B1762C1F5D for ; Thu, 23 Jun 2016 17:33:16 +0000 (UTC) Date: Thu, 23 Jun 2016 17:33:16 +0000 (UTC) From: "Krish Iyer (JIRA)" To: dev@kafka.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (KAFKA-3895) Implement a default queue for expired messages MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 23 Jun 2016 17:33:23 -0000 Krish Iyer created KAFKA-3895: --------------------------------- Summary: Implement a default queue for expired messages Key: KAFKA-3895 URL: https://issues.apache.org/jira/browse/KAFKA-3895 Project: Kafka Issue Type: New Feature Components: core Reporter: Krish Iyer Priority: Minor As discussed in the mailing list, kafka currently does not support a dead letter queue-like feature where all the expired messages can be sent to. A high-level design of such a feature can be as follows: When kafka needs to expire a message from topic 'X', it sends the message to 'X-expired' topic, rather than deleting it. If 'X' is 'X-expired', dequeue and requeue the message in the expired topic. Given that this topic can receive duplicate messages (same expired message multiple times), the consumer of this topic needs to ensure duplicate message handling. Open question: Does the message need a timestamp to figure out when did it move from a normal queue to a dead letter queue. Does it need a flag to specify whether it had expired from the X-expired topic itself? -- This message was sent by Atlassian JIRA (v6.3.4#6332)