From issues-return-126686-archive-asf-public=cust-asf.ponee.io@hive.apache.org Sun Jul 1 19:33:05 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id DD23B180654 for ; Sun, 1 Jul 2018 19:33:04 +0200 (CEST) Received: (qmail 96463 invoked by uid 500); 1 Jul 2018 17:33:04 -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 96454 invoked by uid 99); 1 Jul 2018 17:33:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Jul 2018 17:33:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 72DCF184AD2 for ; Sun, 1 Jul 2018 17:33:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.311 X-Spam-Level: X-Spam-Status: No, score=-110.311 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 8rEC2yhdng_X for ; Sun, 1 Jul 2018 17:33:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 9A3DD5F57D for ; Sun, 1 Jul 2018 17:33:01 +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 B4071E02BE for ; Sun, 1 Jul 2018 17:33:00 +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 26D3D2183D for ; Sun, 1 Jul 2018 17:33:00 +0000 (UTC) Date: Sun, 1 Jul 2018 17:33:00 +0000 (UTC) From: "mahesh kumar behera (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-19267) Create/Replicate ACID Write event MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-19267?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] mahesh kumar behera updated HIVE-19267: --------------------------------------- Attachment: HIVE-19267.21.patch > Create/Replicate ACID Write event > --------------------------------- > > Key: HIVE-19267 > URL: https://issues.apache.org/jira/browse/HIVE-19267 > Project: Hive > Issue Type: Sub-task > Components: repl, Transactions > Affects Versions: 3.0.0 > Reporter: mahesh kumar behera > Assignee: mahesh kumar behera > Priority: Major > Labels: ACID, DR, pull-request-available, replication > Attachments: HIVE-19267.01-branch-3.patch, HIVE-19267.01.patch, H= IVE-19267.02.patch, HIVE-19267.03.patch, HIVE-19267.04.patch, HIVE-19267.05= .patch, HIVE-19267.06.patch, HIVE-19267.07.patch, HIVE-19267.08.patch, HIVE= -19267.09.patch, HIVE-19267.10.patch, HIVE-19267.11.patch, HIVE-19267.12.pa= tch, HIVE-19267.13.patch, HIVE-19267.14.patch, HIVE-19267.15.patch, HIVE-19= 267.16.patch, HIVE-19267.17.patch, HIVE-19267.18.patch, HIVE-19267.19.patch= , HIVE-19267.20.patch, HIVE-19267.21.patch > > > =C2=A0 > h1. Replicate=C2=A0ACID write Events > * Create new EVENT_WRITE event with related message format to log the wr= ite operations with in a txn along with data associated. > * Log this event when perform any writes (insert into, insert overwrite,= load table, delete, update, merge, truncate) on table/partition. > * If a single MERGE/UPDATE/INSERT/DELETE statement operates on multiple = partitions, then need to log one event per partition. > * DbNotificationListener should log this type of event to special metast= ore table named "MTxnWriteNotificationLog". > * This table should maintain a map of txn ID against list of tables/part= itions written by given txn. > * The entry for a given txn should be removed by the cleaner thread that= removes the expired events from EventNotificationTable. > h1. Replicate Commit Txn operation (with writes) > Add new EVENT_COMMIT_TXN to log the metadata/data of all tables/partition= s modified within the txn. > *Source warehouse:* > * This event should read the EVENT_WRITEs from "MTxnWriteNotificationLog= " metastore table to consolidate the list of tables/partitions modified wit= hin this txn scope. > * Based on the list of tables/partitions modified and table Write ID, ne= ed to compute the list of delta files added by this txn. > * Repl dump should read this message and dump the metadata and delta fil= es list. > *Target warehouse:* > * Ensure snapshot isolation at target for on-going read txns which shoul= dn't view the data replicated from committed txn. (Ensured with open and al= locate write ID events). -- This message was sent by Atlassian JIRA (v7.6.3#76005)