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 918672009A8 for ; Tue, 17 May 2016 20:22:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9028A160A20; Tue, 17 May 2016 18:22:14 +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 E1D1F1607A8 for ; Tue, 17 May 2016 20:22:13 +0200 (CEST) Received: (qmail 65080 invoked by uid 500); 17 May 2016 18:22:13 -0000 Mailing-List: contact issues-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list issues@drill.apache.org Received: (qmail 65051 invoked by uid 99); 17 May 2016 18:22:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 May 2016 18:22:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id D673C2C14F8 for ; Tue, 17 May 2016 18:22:12 +0000 (UTC) Date: Tue, 17 May 2016 18:22:12 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DRILL-4676) Foreman.moveToState can block forever if called by the foreman thread while the query is still being setup MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 17 May 2016 18:22:14 -0000 [ https://issues.apache.org/jira/browse/DRILL-4676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15287178#comment-15287178 ] ASF GitHub Bot commented on DRILL-4676: --------------------------------------- Github user adeneche commented on a diff in the pull request: https://github.com/apache/drill/pull/503#discussion_r63576357 --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/work/foreman/Foreman.java --- @@ -1191,7 +1195,7 @@ public void failed(final RpcException ex) { } else { // since this won't be waited on, we can wait to deliver this event once the Foreman is ready logger.debug("Failure while sending fragment. Stopping query.", ex); - stateListener.moveToState(QueryState.FAILED, ex); --- End diff -- what do you mean by "deferring this" ? > Foreman.moveToState can block forever if called by the foreman thread while the query is still being setup > ---------------------------------------------------------------------------------------------------------- > > Key: DRILL-4676 > URL: https://issues.apache.org/jira/browse/DRILL-4676 > Project: Apache Drill > Issue Type: Bug > Components: Execution - Flow > Affects Versions: 1.6.0 > Reporter: Deneche A. Hakim > Assignee: Sudheesh Katkam > Fix For: 1.7.0 > > > When the query is being setup, foreman has a special CountDownLatch that blocks rpc threads from delivering external events, this latch is unblocked at the end of the query setup. > In some cases though, when the foreman is submitting remote fragments, a failure in RpcBus.send() causes an exception to be thrown that is reported to > Foreman.FragmentSubmitListener and blocks in the CountDownLatch. This causes the foreman thread to block forever, and can rpc threads to be blocked too. > This seems to happen more frequently at a high concurrency load, and also can prevent clients from connecting to the Drillbits. -- This message was sent by Atlassian JIRA (v6.3.4#6332)