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 551A163AA for ; Tue, 28 Jun 2011 18:16:41 +0000 (UTC) Received: (qmail 20346 invoked by uid 500); 28 Jun 2011 18:16:41 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 20274 invoked by uid 500); 28 Jun 2011 18:16:40 -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 20263 invoked by uid 500); 28 Jun 2011 18:16:40 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 20258 invoked by uid 99); 28 Jun 2011 18:16:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Jun 2011 18:16:40 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_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; Tue, 28 Jun 2011 18:16:38 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 3F50D437530 for ; Tue, 28 Jun 2011 18:16:17 +0000 (UTC) Date: Tue, 28 Jun 2011 18:16:17 +0000 (UTC) From: "Sushanth Sowmyan (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: <719357864.2743.1309284977256.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1752480181.8686.1308175967640.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HIVE-2224) Ability to add_partitions atomically MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HIVE-2224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sushanth Sowmyan updated HIVE-2224: ----------------------------------- Attachment: HIVE-2224.patch Attaching proposed patch. > Ability to add_partitions atomically > ------------------------------------ > > Key: HIVE-2224 > URL: https://issues.apache.org/jira/browse/HIVE-2224 > Project: Hive > Issue Type: Improvement > Components: Metastore > Reporter: Sushanth Sowmyan > Attachments: HIVE-2224.patch > > > I'd like to see an atomic version of the add_partitions() call. > Whether this is to be done by config to affect add_partitions() behaviour (not my preference) or just changing add_partitions() default behaviour (my preference, but likely to affect current behaviour, so will need others' input) or by making a new add_partitions_atomic() call depends on discussion. > This looks relatively doable to implement (will need a dependent add_partition_core to not do a ms.commit_partition() early, and to cache list of directories created to remove on rollback, and a list of AddPartitionEvent to trigger in one shot later) > Thoughts? This also seems like something to implement for allowing HIVE-1805. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira