Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-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 068319719 for ; Thu, 14 Jun 2012 17:46:44 +0000 (UTC) Received: (qmail 75001 invoked by uid 500); 14 Jun 2012 17:46:43 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 74906 invoked by uid 500); 14 Jun 2012 17:46:43 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 74883 invoked by uid 500); 14 Jun 2012 17:46:43 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 74872 invoked by uid 99); 14 Jun 2012 17:46:43 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jun 2012 17:46:43 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id EA13F1404B4 for ; Thu, 14 Jun 2012 17:46:42 +0000 (UTC) Date: Thu, 14 Jun 2012 17:46:42 +0000 (UTC) From: "Kevin Wilfong (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: <2003151941.16351.1339696002961.JavaMail.jiratomcat@issues-vm> In-Reply-To: <1412251579.14015.1339630665935.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (HIVE-3134) Drop table/index/database can result in orphaned locations MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-3134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13295186#comment-13295186 ] Kevin Wilfong commented on HIVE-3134: ------------------------------------- Responded to comments on phabricator. > Drop table/index/database can result in orphaned locations > ---------------------------------------------------------- > > Key: HIVE-3134 > URL: https://issues.apache.org/jira/browse/HIVE-3134 > Project: Hive > Issue Type: Bug > Components: Metastore > Reporter: Kevin Wilfong > Assignee: Kevin Wilfong > Attachments: HIVE-3134.1.patch.txt > > > Today when a managed table has a partition with a location which is not a subdirectory of the table's location, when the table is dropped the partition's data is not deleted from HDFS, resulting in an orphaned directory (the data exists but nothing points to it). > The same applies to dropping a database with cascade and a table has a location outside the database. > I think it is safe to assume managed tables/partitions own the directories they point to, so we should clean these up. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira