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 B27581167E for ; Thu, 15 May 2014 02:57:01 +0000 (UTC) Received: (qmail 57683 invoked by uid 500); 10 May 2014 22:07:53 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 57483 invoked by uid 500); 10 May 2014 22:07:53 -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 57191 invoked by uid 500); 10 May 2014 22:07:53 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 57062 invoked by uid 99); 10 May 2014 22:07:53 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 May 2014 22:07:53 +0000 Date: Sat, 10 May 2014 22:07:53 +0000 (UTC) From: "Navis (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-5664) Drop cascade database fails when the db has any tables with indexes 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-5664?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Navis updated HIVE-5664: ------------------------ Fix Version/s: (was: 0.13.0) 0.14.0 > Drop cascade database fails when the db has any tables with indexes > ------------------------------------------------------------------- > > Key: HIVE-5664 > URL: https://issues.apache.org/jira/browse/HIVE-5664 > Project: Hive > Issue Type: Bug > Components: Indexing, Metastore > Affects Versions: 0.10.0, 0.11.0, 0.12.0 > Reporter: Venki Korukanti > Assignee: Venki Korukanti > Fix For: 0.14.0 > > Attachments: HIVE-5664.1.patch.txt > > > {code} > CREATE DATABASE db2; > USE db2; > CREATE TABLE tab1 (id int, name string); > CREATE INDEX idx1 ON TABLE tab1(id) as 'COMPACT' with DEFERRED REBUILD IN TABLE tab1_indx; > DROP DATABASE db2 CASCADE; > {code} > Last DDL fails with the following error: > {code} > FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. Database does not exist: db2 > Hive.log has following exception > 2013-10-27 20:46:16,629 ERROR exec.DDLTask (DDLTask.java:execute(434)) - org.apache.hadoop.hive.ql.metadata.HiveException: Database does not exist: db2 > at org.apache.hadoop.hive.ql.exec.DDLTask.dropDatabase(DDLTask.java:3473) > at org.apache.hadoop.hive.ql.exec.DDLTask.execute(DDLTask.java:231) > at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:151) > at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:65) > at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:1441) > at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1219) > at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1047) > at org.apache.hadoop.hive.ql.Driver.run(Driver.java:915) > at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:268) > at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:220) > at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:422) > at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:790) > at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:684) > at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:623) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at org.apache.hadoop.util.RunJar.main(RunJar.java:160) > Caused by: NoSuchObjectException(message:db2.tab1_indx table not found) > at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.get_table(HiveMetaStore.java:1376) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at org.apache.hadoop.hive.metastore.RetryingHMSHandler.invoke(RetryingHMSHandler.java:103) > at com.sun.proxy.$Proxy7.get_table(Unknown Source) > at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.getTable(HiveMetaStoreClient.java:890) > at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.dropTable(HiveMetaStoreClient.java:660) > at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.dropTable(HiveMetaStoreClient.java:652) > at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.dropDatabase(HiveMetaStoreClient.java:546) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.invoke(RetryingMetaStoreClient.java:89) > at com.sun.proxy.$Proxy8.dropDatabase(Unknown Source) > at org.apache.hadoop.hive.ql.metadata.Hive.dropDatabase(Hive.java:284) > at org.apache.hadoop.hive.ql.exec.DDLTask.dropDatabase(DDLTask.java:3470) > ... 18 more > {code} -- This message was sent by Atlassian JIRA (v6.2#6252)