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

Optimize(reduce) the number of alter calls made to fix repl.last.id

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      Per code review from HIVE-15534, we might be doing alters to parent objects to set repl.last.id when it is not necessary, since some future event might make this alter redundant.

      There are 3 cases where this might happen:

      a) After a CREATE_TABLE event - any prior reference to that table does not need an ALTER, since CREATE_TABLE will have a repl.last.id come with it.
      b) After a DROP_TABLE event - any prior reference to that table is irrelevant, and thus, no alter is needed.
      c) After an ALTER_TABLE event, since that dump will itself do a metadata update that will get the latest repl.last.id along with this event.

      In each of these cases, we can remove the alter call needed.

      Attachments

        1. HIVE-15652.patch
          6 kB
          Sushanth Sowmyan

        Issue Links

          Activity

            People

              sushanth Sushanth Sowmyan
              sushanth Sushanth Sowmyan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: