Return-Path: X-Original-To: apmail-drill-dev-archive@www.apache.org Delivered-To: apmail-drill-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 49351180D8 for ; Wed, 13 May 2015 03:58:00 +0000 (UTC) Received: (qmail 91852 invoked by uid 500); 13 May 2015 03:58:00 -0000 Delivered-To: apmail-drill-dev-archive@drill.apache.org Received: (qmail 91800 invoked by uid 500); 13 May 2015 03:58:00 -0000 Mailing-List: contact dev-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 dev@drill.apache.org Received: (qmail 91751 invoked by uid 99); 13 May 2015 03:58:00 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 May 2015 03:58:00 +0000 Date: Wed, 13 May 2015 03:57:59 +0000 (UTC) From: "Deneche A. Hakim (JIRA)" To: dev@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (DRILL-3052) canceling a fragment executor before it starts running will cause the Foreman to wait indefinitely for a terminal message from that fragment MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Deneche A. Hakim created DRILL-3052: --------------------------------------- Summary: canceling a fragment executor before it starts running will cause the Foreman to wait indefinitely for a terminal message from that fragment Key: DRILL-3052 URL: https://issues.apache.org/jira/browse/DRILL-3052 Project: Apache Drill Issue Type: Bug Reporter: Deneche A. Hakim Assignee: Deneche A. Hakim Fix For: 1.0.0 When a Foreman receives a cancellation from the client it will cancel all it's fragments and go into a CANCELLATION_REQUEST state. Each fragment will cancel it's work, close it's resources and report a terminal state to the Foreman (either CANCELLED or FAILED). The Foreman will wait for all fragments to report before sending a terminal message to the client. If a fragment is cancelled before it started running (similar to DRILL-2878) it will close it's resources but it will never send a terminal state to the foreman which will cause the foreman to wait indefinitely. TestDrillbitResilience.cancelBeforeAnyResultsArrive() exposes this problem. -- This message was sent by Atlassian JIRA (v6.3.4#6332)