[
https://issues.apache.org/jira/browse/HIVE-18679?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16360819#comment-16360819
]
ASF GitHub Bot commented on HIVE-18679:
---------------------------------------
GitHub user maheshk114 opened a pull request:
https://github.com/apache/hive/pull/305
HIVE-18679 : create/replicate open transaction event
EVENT_OPEN_TXN:
Source Warehouse:
Create new event type EVENT_OPEN_TXN with related message format etc.
When any transaction is opened either by auto-commit mode or
multi-statement mode, need to capture this event.
Repl dump should read this event from EventNotificationTable and dump the
message.
Target Warehouse:
Repl load should read the event from the dump and get the message.
Open a txn in target warehouse.
Create a map of source txn ID against target txn ID and persist the same in
metastore. There should be one map per replication policy (DBName.* incase of
DB level replication, DBName.TableName incase of table level replication)
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/maheshk114/hive BUG-95520
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/hive/pull/305.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #305
----
commit 4a855de860ccec6e37e4c16ebbddee575e9ae2f2
Author: Mahesh Kumar Behera <mbehera@...>
Date: 2018-02-12T05:07:01Z
HIVE-18679 : create/replicate open transaction event
commit c745a4066b31075004b96200da079b4dd4fd2743
Author: Mahesh Kumar Behera <mbehera@...>
Date: 2018-02-12T14:29:54Z
HIVE-18679 : create/replicate open transaction event : rebased with Alan's
change
----
> create/replicate open transaction event
> ---------------------------------------
>
> Key: HIVE-18679
> URL: https://issues.apache.org/jira/browse/HIVE-18679
> Project: Hive
> Issue Type: Bug
> Components: repl, Transactions
> Affects Versions: 3.0.0
> Reporter: mahesh kumar behera
> Assignee: mahesh kumar behera
> Priority: Major
> Labels: pull-request-available
> Fix For: 3.0.0
>
>
> *EVENT_OPEN_TXN:*
> *Source Warehouse:*
> - Create new event type EVENT_OPEN_TXN with related message format etc.
> - When any transaction is opened either by auto-commit mode or
> multi-statement mode, need to capture this event.
> - Repl dump should read this event from EventNotificationTable and dump the
> message.
> *Target Warehouse:*
> - Repl load should read the event from the dump and get the message.
> - Open a txn in target warehouse.
> - Create a map of source txn ID against target txn ID and persist the same
> in metastore. There should be one map per replication policy (DBName.* incase
> of DB level replication, DBName.TableName incase of table level replication)
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)