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 7D039200C4B for ; Mon, 20 Mar 2017 19:12:46 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 7BAFC160B76; Mon, 20 Mar 2017 18:12:46 +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 C478E160B71 for ; Mon, 20 Mar 2017 19:12:45 +0100 (CET) Received: (qmail 3948 invoked by uid 500); 20 Mar 2017 18:12:45 -0000 Mailing-List: contact issues-help@impala.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@impala.incubator.apache.org Delivered-To: mailing list issues@impala.incubator.apache.org Received: (qmail 3939 invoked by uid 99); 20 Mar 2017 18:12:45 -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, 20 Mar 2017 18:12:45 +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 6CDA4185F17 for ; Mon, 20 Mar 2017 18:12:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.451 X-Spam-Level: * X-Spam-Status: No, score=1.451 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_NEUTRAL=0.652] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id LfP-QPxypimB for ; Mon, 20 Mar 2017 18:12:43 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 07B2761E28 for ; Mon, 20 Mar 2017 18:12:43 +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 4C7EAE081B for ; Mon, 20 Mar 2017 18:12:42 +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 A6495254CF for ; Mon, 20 Mar 2017 18:12:41 +0000 (UTC) Date: Mon, 20 Mar 2017 18:12:41 +0000 (UTC) From: "Dimitris Tsirogiannis (JIRA)" To: issues@impala.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (IMPALA-2518) DROP DATABASE CASCADE does not remove cache directives of tables MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 20 Mar 2017 18:12:46 -0000 [ https://issues.apache.org/jira/browse/IMPALA-2518?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dimitris Tsirogiannis resolved IMPALA-2518. ------------------------------------------- Resolution: Fixed Fix Version/s: Impala 2.8.0 Change-Id: I83ef5a33e06728c2b3f833a0309d9da64dce7b88 Reviewed-on: http://gerrit.cloudera.org:8080/5815 Reviewed-by: Dimitris Tsirogiannis Tested-by: Impala Public Jenkins --- M fe/src/main/java/org/apache/impala/service/CatalogOpExecutor.java M fe/src/main/java/org/apache/impala/util/HdfsCachingUtil.java M tests/query_test/test_hdfs_caching.py 3 files changed, 66 insertions(+), 34 deletions(-) Approvals: Impala Public Jenkins: Verified Dimitris Tsirogiannis: Looks good to me, approved > DROP DATABASE CASCADE does not remove cache directives of tables > ---------------------------------------------------------------- > > Key: IMPALA-2518 > URL: https://issues.apache.org/jira/browse/IMPALA-2518 > Project: IMPALA > Issue Type: Bug > Components: Catalog > Affects Versions: Impala 2.2.4 > Reporter: Dimitris Tsirogiannis > Assignee: Dimitris Tsirogiannis > Priority: Critical > Labels: catalog-server, usability > Fix For: Impala 2.8.0 > > > Executing a DROP DATABASE statement with the CASCADE option does not clear the cache directives associated with the cached tables that are contained in the dropped database. > To reproduce: > {code} > impala> create database foo; > impala> use foo; > impala>create table t1 (a int) cached in 'testPool' with replication = 8; > shell> hdfs cacheadmin -listDirectives > impala> use default; > impala> drop database foo cascade; > shell> hdfs cachedmin -listDirectives <-- the output contains the directive associated with the path of table t1 > {code} > This has been breaking impala-cdh5.5.x-repeated-runs (https://issues.cloudera.org/browse/IMPALA-2510) -- This message was sent by Atlassian JIRA (v6.3.15#6346)