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 F040E200C25 for ; Fri, 24 Feb 2017 19:12:48 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id EEE55160B79; Fri, 24 Feb 2017 18:12:48 +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 456E0160B62 for ; Fri, 24 Feb 2017 19:12:48 +0100 (CET) Received: (qmail 55608 invoked by uid 500); 24 Feb 2017 18:12:47 -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 55599 invoked by uid 99); 24 Feb 2017 18:12:47 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Feb 2017 18:12:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 02574C0715 for ; Fri, 24 Feb 2017 18:12:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.651 X-Spam-Level: X-Spam-Status: No, score=0.651 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_NEUTRAL=0.652] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 0FKTyUwvSqTM for ; Fri, 24 Feb 2017 18:12:46 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 8A3115F5A5 for ; Fri, 24 Feb 2017 18:12:45 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id D040AE08B8 for ; Fri, 24 Feb 2017 18:12:44 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 3D6E52413A for ; Fri, 24 Feb 2017 18:12:44 +0000 (UTC) Date: Fri, 24 Feb 2017 18:12:44 +0000 (UTC) From: "Paul Rogers (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DRILL-5274) Exception thrown in Drillbit shutdown in UDF cleanup code MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 24 Feb 2017 18:12:49 -0000 [ https://issues.apache.org/jira/browse/DRILL-5274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Paul Rogers updated DRILL-5274: ------------------------------- Labels: ready-to-commit (was: ) > Exception thrown in Drillbit shutdown in UDF cleanup code > --------------------------------------------------------- > > Key: DRILL-5274 > URL: https://issues.apache.org/jira/browse/DRILL-5274 > Project: Apache Drill > Issue Type: Bug > Affects Versions: 1.10.0 > Reporter: Paul Rogers > Assignee: Arina Ielchiieva > Priority: Minor > Labels: ready-to-commit > > I ran a very simple query: a single-line text file in an embedded Drillbit. The UDF directory was placed in /tmp. During the run, the directory was deleted. On Drillbit shutdown, the following occurred: > {code} > 25328 DEBUG [main] [org.apache.drill.exec.server.Drillbit] - Shutdown begun. > 26344 INFO [pool-1-thread-2] [org.apache.drill.exec.rpc.data.DataServer] - closed eventLoopGroup io.netty.channel.nio.NioEventLoopGroup@7d1c0d85 in 1007 ms > 26345 INFO [pool-1-thread-1] [org.apache.drill.exec.rpc.user.UserServer] - closed eventLoopGroup io.netty.channel.nio.NioEventLoopGroup@7cdb3b56 in 1008 ms > 26345 INFO [pool-1-thread-1] [org.apache.drill.exec.service.ServiceEngine] - closed userServer in 1009 ms > 26345 INFO [pool-1-thread-2] [org.apache.drill.exec.service.ServiceEngine] - closed dataPool in 1009 ms > 26356 WARN [main] [org.apache.drill.exec.server.Drillbit] - Failure on close() > java.lang.IllegalArgumentException: /tmp/drill/udf/udf/local does not exist > at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1637) ~[commons-io-2.4.jar:2.4] > at org.apache.drill.exec.expr.fn.FunctionImplementationRegistry.close(FunctionImplementationRegistry.java:469) ~[classes/:na] > at org.apache.drill.exec.server.DrillbitContext.close(DrillbitContext.java:209) ~[classes/:na] > at org.apache.drill.exec.work.WorkManager.close(WorkManager.java:152) ~[classes/:na] > at org.apache.drill.common.AutoCloseables.close(AutoCloseables.java:76) ~[classes/:na] > at org.apache.drill.common.AutoCloseables.close(AutoCloseables.java:64) ~[classes/:na] > at org.apache.drill.exec.server.Drillbit.close(Drillbit.java:171) ~[classes/:na] > ... > {code} > The following patch makes the problem go away, but I'm not sure if the above is an indication of deeper problems. > {code} > public class FunctionImplementationRegistry implements FunctionLookupContext, AutoCloseable { > ... > public void close() { > if (deleteTmpDir) { > ... > } else { > try { > File dir = new File(localUdfDir.toUri().getPath()); > if (dir.exists()) { > FileUtils.cleanDirectory(dir); > } > ... > } > } > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346)