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 1F5C380F6 for ; Wed, 10 Aug 2011 23:32:54 +0000 (UTC) Received: (qmail 31202 invoked by uid 500); 10 Aug 2011 23:32:53 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 30687 invoked by uid 500); 10 Aug 2011 23:32:52 -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 30679 invoked by uid 500); 10 Aug 2011 23:32:52 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 30676 invoked by uid 99); 10 Aug 2011 23:32:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Aug 2011 23:32:52 +0000 X-ASF-Spam-Status: No, hits=-2000.8 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Aug 2011 23:32:51 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 1ADE7B62C7 for ; Wed, 10 Aug 2011 23:32:31 +0000 (UTC) Date: Wed, 10 Aug 2011 23:32:31 +0000 (UTC) From: "jiraposter@reviews.apache.org (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: <58121299.25886.1313019151107.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <935272625.25861.1313019036608.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HIVE-2368) Determining whether a Column Descriptor is unused may take too long 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-2368?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13082765#comment-13082765 ] jiraposter@reviews.apache.org commented on HIVE-2368: ----------------------------------------------------- ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/1462/ ----------------------------------------------------------- Review request for hive and Paul Yang. Summary ------- To determine if a column descriptor is unused, we call listStorageDescriptorsWithCD(), which may return a big list of SDs. This can severely slow down dropping partitions. We can add a maximum number of SDs to return, and just ask for 1 SD, since we are just doing an existential check. This addresses bug HIVE-2368. https://issues.apache.org/jira/browse/HIVE-2368 Diffs ----- trunk/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java 1156401 Diff: https://reviews.apache.org/r/1462/diff Testing ------- Thanks, Sohan > Determining whether a Column Descriptor is unused may take too long > ------------------------------------------------------------------- > > Key: HIVE-2368 > URL: https://issues.apache.org/jira/browse/HIVE-2368 > Project: Hive > Issue Type: Bug > Components: Metastore > Reporter: Sohan Jain > Attachments: HIVE-2368.1.patch > > > To determine if a column descriptor is unused, we call listStorageDescriptorsWithCD(), which may return a big list of SDs. This can severely slow down dropping partitions. > We can add a maximum number of SDs to return, and just ask for 1 SD, since we are just doing an existential check. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira