Return-Path: X-Original-To: apmail-beam-commits-archive@minotaur.apache.org Delivered-To: apmail-beam-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 03F22198AA for ; Mon, 25 Apr 2016 18:53:33 +0000 (UTC) Received: (qmail 46593 invoked by uid 500); 25 Apr 2016 18:53:33 -0000 Delivered-To: apmail-beam-commits-archive@beam.apache.org Received: (qmail 46542 invoked by uid 500); 25 Apr 2016 18:53:32 -0000 Mailing-List: contact commits-help@beam.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@beam.incubator.apache.org Delivered-To: mailing list commits@beam.incubator.apache.org Received: (qmail 46533 invoked by uid 99); 25 Apr 2016 18:53:32 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Apr 2016 18:53:32 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 785F8180225 for ; Mon, 25 Apr 2016 18:53:32 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.021 X-Spam-Level: X-Spam-Status: No, score=-4.021 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id hC_e_kgbm3Je for ; Mon, 25 Apr 2016 18:53:30 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 8B5395F39B for ; Mon, 25 Apr 2016 18:53:29 +0000 (UTC) Received: (qmail 46517 invoked by uid 99); 25 Apr 2016 18:53:28 -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, 25 Apr 2016 18:53:28 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 6FF85DFE60; Mon, 25 Apr 2016 18:53:28 +0000 (UTC) From: rangadi To: commits@beam.incubator.apache.org Reply-To: commits@beam.incubator.apache.org Message-ID: Subject: [GitHub] incubator-beam pull request: [BEAM-220] fix flaky KafkaIO test Content-Type: text/plain Date: Mon, 25 Apr 2016 18:53:28 +0000 (UTC) GitHub user rangadi opened a pull request: https://github.com/apache/incubator-beam/pull/237 [BEAM-220] fix flaky KafkaIO test Fix a flaky KafkaIO test. KafkaIO reader reads from Kafka in a separate thread. As a result, `start()` or `advance()` might not read a record with in 10 millis timeout even from the mock kafka consumer. Updated one test that manually reads from KafkaIO reader to invoke `advance()` in a loop. This should fix the flaky test. I am running these tests in a loop on my desktop to verify. One thing I can not explain is the following log from the failed jenkins build linked in BEAM-220 (the log was same when I reproduced it locally): Apr 22, 2016 7:04:10 AM org.apache.beam.sdk.io.kafka.KafkaIO$UnboundedKafkaReader advance INFO: Reader-0: first record offset 0 It is entirely clear if this is from the failed test, but `first record offset 0` implies the `start()` must have returned true. You can merge this pull request into a Git repository by running: $ git pull https://github.com/rangadi/incubator-beam flaky Alternatively you can review and apply these changes as the patch at: https://github.com/apache/incubator-beam/pull/237.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 #237 ---- commit f00517e0771a4ca0a71170b7bd08146ffbf0bee2 Author: Raghu Angadi Date: 2016-04-25T18:43:48Z fix flaky KafkaIO test ---- --- 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. ---