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 40B1A200BF8 for ; Fri, 13 Jan 2017 19:11:19 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 3F572160B3F; Fri, 13 Jan 2017 18:11:19 +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 AFF43160B2E for ; Fri, 13 Jan 2017 19:11:18 +0100 (CET) Received: (qmail 19124 invoked by uid 500); 13 Jan 2017 18:11:17 -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 19112 invoked by uid 99); 13 Jan 2017 18:11:17 -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; Fri, 13 Jan 2017 18:11:17 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 600F3DFAAF; Fri, 13 Jan 2017 18:11:17 +0000 (UTC) From: dguy To: dev@kafka.apache.org Reply-To: dev@kafka.apache.org Message-ID: Subject: [GitHub] kafka pull request #2371: KAFKA-4588: Wait for topics to be created in Query... Content-Type: text/plain Date: Fri, 13 Jan 2017 18:11:17 +0000 (UTC) archived-at: Fri, 13 Jan 2017 18:11:19 -0000 GitHub user dguy opened a pull request: https://github.com/apache/kafka/pull/2371 KAFKA-4588: Wait for topics to be created in QueryableStateIntegrationTest.shouldNotMakeStoreAvailableUntilAllStoresAvailable After debugging this i can see the times that it fails there is a race between when the topic is actually created/ready on the broker and when the assignment happens. When it fails `StreamPartitionAssignor.assign(..)` gets called with a `Cluster` with no topics. Hence the test hangs as no tasks get assigned. To fix this I added a `waitForTopics` method to `EmbeddedKafkaCluster`. This will wait until the topics have been created. You can merge this pull request into a Git repository by running: $ git pull https://github.com/dguy/kafka integration-test-fix Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/2371.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 #2371 ---- commit 52f5792a41878a5decf26ad011178737096e0933 Author: Damian Guy Date: 2017-01-13T16:51:49Z metadata hack commit c85facef85cfcfd25c7cae3560f4a098f0a97b92 Author: Damian Guy Date: 2017-01-13T18:07:48Z wait for topics to be created ---- --- 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. ---