Return-Path: X-Original-To: apmail-incubator-kafka-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-kafka-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DBDE5DC48 for ; Fri, 9 Nov 2012 05:38:16 +0000 (UTC) Received: (qmail 64397 invoked by uid 500); 9 Nov 2012 05:38:16 -0000 Delivered-To: apmail-incubator-kafka-dev-archive@incubator.apache.org Received: (qmail 64215 invoked by uid 500); 9 Nov 2012 05:38:15 -0000 Mailing-List: contact kafka-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: kafka-dev@incubator.apache.org Delivered-To: mailing list kafka-dev@incubator.apache.org Received: (qmail 64177 invoked by uid 99); 9 Nov 2012 05:38:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Nov 2012 05:38:13 +0000 Date: Fri, 9 Nov 2012 05:38:13 +0000 (UTC) From: "Swapnil Ghike (JIRA)" To: kafka-dev@incubator.apache.org Message-ID: <747063593.90333.1352439493329.JavaMail.jiratomcat@arcas> In-Reply-To: <890608379.81454.1347646327891.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (KAFKA-513) Add state change log to Kafka brokers MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KAFKA-513?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13493749#comment-13493749 ] Swapnil Ghike commented on KAFKA-513: ------------------------------------- Have finished writing down all functionality. The tool accepts a list of log files and an optional list of topics, and it seems to be doing the merging part fine. Currently waiting for KAFKA-532 which I believe will add controller id to leaderAndIsr (this jira needs it for logging controller id in the partition state change log). The first patch might need a review to make sure that no additional logging is necessary and for any code refactoring. > Add state change log to Kafka brokers > ------------------------------------- > > Key: KAFKA-513 > URL: https://issues.apache.org/jira/browse/KAFKA-513 > Project: Kafka > Issue Type: Sub-task > Affects Versions: 0.8 > Reporter: Neha Narkhede > Assignee: Swapnil Ghike > Priority: Blocker > Labels: replication, tools > Fix For: 0.8 > > Original Estimate: 96h > Remaining Estimate: 96h > > Once KAFKA-499 is checked in, every controller to broker communication can be modelled as a state change for one or more partitions. Every state change request will carry the controller epoch. If there is a problem with the state of some partitions, it will be good to have a tool that can create a timeline of requested and completed state changes. This will require each broker to output a state change log that has entries like > [2012-09-10 10:06:17,280] broker 1 received request LeaderAndIsr() for partition [foo, 0] from controller 2, epoch 1 > [2012-09-10 10:06:17,350] broker 1 completed request LeaderAndIsr() for partition [foo, 0] from controller 2, epoch 1 > On controller, this will look like - > [2012-09-10 10:06:17,198] controller 2, epoch 1, initiated state change request LeaderAndIsr() for partition [foo, 0] > We need a tool that can collect the state change log from all brokers and create a per-partition timeline of state changes - > [foo, 0] > [2012-09-10 10:06:17,198] controller 2, epoch 1 initiated state change request LeaderAndIsr() > [2012-09-10 10:06:17,280] broker 1 received request LeaderAndIsr() from controller 2, epoch 1 > [2012-09-10 10:06:17,350] broker 1 completed request LeaderAndIsr() from controller 2, epoch 1 > This JIRA involves adding the state change log to each broker and adding the tool to create the timeline -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira