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
Attachments
Issue Links
- is related to
-
HIVE-15534 Update db/table repl.last.id at the end of REPL LOAD of a batch of events
- Closed
- links to