Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-18320 Support ACID Tables Replication
  3. HIVE-19267

Replicate ACID/MM tables write operations.

    XMLWordPrintableJSON

Details

    Description

       

      Replicate ACID write Events

      • Create new EVENT_WRITE event with related message format to log the write 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 metastore table named "MTxnWriteNotificationLog".
      • This table should maintain a map of txn ID against list of tables/partitions written by given txn.
      • The entry for a given txn should be removed by the cleaner thread that removes the expired events from EventNotificationTable.

      Replicate Commit Txn operation (with writes)

      Add new EVENT_COMMIT_TXN to log the metadata/data of all tables/partitions 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 within this txn scope.
      • Based on the list of tables/partitions modified and table Write ID, need to compute the list of delta files added by this txn.
      • Repl dump should read this message and dump the metadata and delta files list.

      Target warehouse:

      • Ensure snapshot isolation at target for on-going read txns which shouldn't view the data replicated from committed txn. (Ensured with open and allocate write ID events).

      Attachments

        1. HIVE-19267.22.patch
          1.56 MB
          mahesh kumar behera
        2. HIVE-19267.21.patch
          1.56 MB
          mahesh kumar behera
        3. HIVE-19267.20.patch
          1.56 MB
          mahesh kumar behera
        4. HIVE-19267.19.patch
          1.56 MB
          mahesh kumar behera
        5. HIVE-19267.18.patch
          1.56 MB
          mahesh kumar behera
        6. HIVE-19267.17.patch
          1.56 MB
          mahesh kumar behera
        7. HIVE-19267.16.patch
          1.56 MB
          mahesh kumar behera
        8. HIVE-19267.15.patch
          1.56 MB
          mahesh kumar behera
        9. HIVE-19267.14.patch
          1.57 MB
          mahesh kumar behera
        10. HIVE-19267.13.patch
          1.57 MB
          mahesh kumar behera
        11. HIVE-19267.12.patch
          1.57 MB
          mahesh kumar behera
        12. HIVE-19267.11.patch
          1.57 MB
          mahesh kumar behera
        13. HIVE-19267.10.patch
          1.57 MB
          mahesh kumar behera
        14. HIVE-19267.09.patch
          1.56 MB
          mahesh kumar behera
        15. HIVE-19267.08.patch
          1.55 MB
          mahesh kumar behera
        16. HIVE-19267.07.patch
          1.54 MB
          mahesh kumar behera
        17. HIVE-19267.06.patch
          1.53 MB
          mahesh kumar behera
        18. HIVE-19267.05.patch
          1.53 MB
          mahesh kumar behera
        19. HIVE-19267.04.patch
          1.50 MB
          mahesh kumar behera
        20. HIVE-19267.03.patch
          1.50 MB
          mahesh kumar behera
        21. HIVE-19267.02-branch-3.patch
          1.76 MB
          mahesh kumar behera
        22. HIVE-19267.02.patch
          1.50 MB
          mahesh kumar behera
        23. HIVE-19267.01-branch-3.patch
          1.56 MB
          mahesh kumar behera
        24. HIVE-19267.01.patch
          1.59 MB
          mahesh kumar behera

        Issue Links

          Activity

            People

              maheshk114 mahesh kumar behera
              maheshk114 mahesh kumar behera
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m