Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-14841 Replication - Phase 2
  3. HIVE-16171

Support replication of truncate table

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersStop watchingWatchersConvert to IssueMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.0
    • 3.0.0
    • repl

    Description

      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.

      Attachments

        1. HIVE-16171.01.patch
          24 kB
          Sankar Hariappan
        2. HIVE-16171.02.patch
          25 kB
          Sankar Hariappan
        3. HIVE-16171.03.patch
          25 kB
          Sankar Hariappan
        4. HIVE-16171.04.patch
          41 kB
          Sankar Hariappan
        5. HIVE-16171.05.patch
          612 kB
          Sankar Hariappan
        6. HIVE-16171.06.patch
          623 kB
          Sankar Hariappan
        7. HIVE-16171.07.patch
          624 kB
          Sankar Hariappan

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            sankarh Sankar Hariappan Assign to me
            sankarh Sankar Hariappan
            Votes:
            0 Vote for this issue
            Watchers:
            6 Stop watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment