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

Disable rename operations during bootstrap dump

    XMLWordPrintableJSON

Details

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

    Description

      Currently, bootstrap dump shall lead to data loss when any rename happens while dump in progress.
      Scenario:

      • Fetch table names (T1 and T2)
      • Dump table T1
      • Rename table T2 to T3 generates RENAME event
      • Dump table T2 is noop as table doesn’t exist.
      • In target after load, it only have T1.
      • Apply RENAME event will fail as T2 doesn’t exist in target.

      This feature can be supported in next phase development as it need proper design to keep track of renamed tables/partitions.
      So, for time being, we shall disable rename operations when bootstrap dump in progress to avoid any inconsistent state.

      Attachments

        1. HIVE-17183.01.patch
          11 kB
          Sankar Hariappan
        2. HIVE-17183.02.patch
          11 kB
          Sankar Hariappan
        3. HIVE-17183.03.patch
          12 kB
          Sankar Hariappan
        4. HIVE-17183.04.patch
          14 kB
          Sankar Hariappan
        5. HIVE-17183.05.patch
          14 kB
          Sankar Hariappan
        6. HIVE-17183.06.patch
          15 kB
          Sankar Hariappan

        Issue Links

          Activity

            People

              sankarh Sankar Hariappan
              sankarh Sankar Hariappan
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: