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 496CD200C54 for ; Wed, 12 Apr 2017 10:15:46 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 47F14160BAC; Wed, 12 Apr 2017 08:15: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 969D0160B8A for ; Wed, 12 Apr 2017 10:15:45 +0200 (CEST) Received: (qmail 48278 invoked by uid 500); 12 Apr 2017 08:15:44 -0000 Mailing-List: contact issues-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 issues@hive.apache.org Received: (qmail 48269 invoked by uid 99); 12 Apr 2017 08:15:44 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Apr 2017 08:15:44 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id D284AC057E for ; Wed, 12 Apr 2017 08:15:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id DVNDIiAFueAU for ; Wed, 12 Apr 2017 08:15: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 A57165FB5C for ; Wed, 12 Apr 2017 08:15:42 +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 29AB3E073A for ; Wed, 12 Apr 2017 08:15: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 CE16624067 for ; Wed, 12 Apr 2017 08:15:41 +0000 (UTC) Date: Wed, 12 Apr 2017 08:15:41 +0000 (UTC) From: "Sankar Hariappan (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (HIVE-16171) Support replication of truncate table MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 12 Apr 2017 08:15:46 -0000 [ https://issues.apache.org/jira/browse/HIVE-16171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15965532#comment-15965532 ] Sankar Hariappan edited comment on HIVE-16171 at 4/12/17 8:14 AM: ------------------------------------------------------------------ The patch HIVE-16171.05 have the following changes. 1. Support change management to recycle the data files before trashing it. This moves the implementation from DDL task to the megastore. 2. Fixed review comments from [~sushanth] - Validation of isTruncateOp should be done during EventNotification time instead of REPL DUMP time. [~sushanth], [~thejas]: Please review the updated patch. was (Author: sankarh): The patch HIVE-16171.05 have the following changes. 1. Support change management to recycle the data files before trashing it. This moves the implementation from DDL task to the megastore. 2. Fixed review comments from [~sushanth] - Validation of isTruncateOp should be done during EventNotification time instead of REPL DUMP time. > Support replication of truncate table > ------------------------------------- > > Key: HIVE-16171 > URL: https://issues.apache.org/jira/browse/HIVE-16171 > Project: Hive > Issue Type: Sub-task > Components: repl > Affects Versions: 2.1.0 > Reporter: Sankar Hariappan > Assignee: Sankar Hariappan > Labels: DR > Attachments: HIVE-16171.01.patch, HIVE-16171.02.patch, HIVE-16171.03.patch, HIVE-16171.04.patch, HIVE-16171.05.patch > > > Need to support truncate table for replication. Key points to note. > 1. For non-partitioned table, truncate table will remove all the rows from the table. > 2. For partitioned tables, need to consider how truncate behaves if truncate a partition or the whole table. > 3. Bootstrap load with truncate table must work as it is just loadTable/loadPartition with empty dataset. > 4. It is suggested to re-use the alter table/alter partition events to handle truncate. > 5. Need to consider the case where insert event happens before truncate table which needs to see their data files through change management. The data files should be recycled to the cmroot path before trashing it. -- This message was sent by Atlassian JIRA (v6.3.15#6346)