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 71CDA200B2B for ; Tue, 28 Jun 2016 20:35:59 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 707D5160A56; Tue, 28 Jun 2016 18:35:59 +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 DFE01160A28 for ; Tue, 28 Jun 2016 20:35:58 +0200 (CEST) Received: (qmail 41214 invoked by uid 500); 28 Jun 2016 18:35:57 -0000 Mailing-List: contact dev-help@crunch.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@crunch.apache.org Delivered-To: mailing list dev@crunch.apache.org Received: (qmail 41010 invoked by uid 500); 28 Jun 2016 18:35:57 -0000 Delivered-To: apmail-incubator-crunch-dev@incubator.apache.org Received: (qmail 40981 invoked by uid 99); 28 Jun 2016 18:35:57 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Jun 2016 18:35:57 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 16C3A2C033A for ; Tue, 28 Jun 2016 18:35:57 +0000 (UTC) Date: Tue, 28 Jun 2016 18:35:57 +0000 (UTC) From: "Micah Whitacre (JIRA)" To: crunch-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CRUNCH-609) KafkaSource could skip data with slow broker response MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 28 Jun 2016 18:35:59 -0000 Micah Whitacre created CRUNCH-609: ------------------------------------- Summary: KafkaSource could skip data with slow broker response Key: CRUNCH-609 URL: https://issues.apache.org/jira/browse/CRUNCH-609 Project: Crunch Issue Type: Bug Components: IO Reporter: Micah Whitacre Assignee: Micah Whitacre In the case of the consumer.poll timing out, the KafkaRecordReader could return with no values in the records iterator which then causes the KafkaRecordReader to exit prematurely[1]. To fix this we need to probably better track the start/end offset and that progress vs the null value. Additionally if we wanted to be smarter we could do some "backoff" for the timeout or just have consumer specify a larger value. [1] - https://github.com/apache/crunch/blob/360d72a4f887505e020fdb8f99c3ccb1800693f6/crunch-kafka/src/main/java/org/apache/crunch/kafka/inputformat/KafkaRecordReader.java#L122 -- This message was sent by Atlassian JIRA (v6.3.4#6332)