Alexander Kolbasov created HIVE-18942:

             Summary: ALTER TABLE may generate huge event (with all partitions)
                 Key: HIVE-18942
             Project: Hive
          Issue Type: Bug
          Components: Metastore
    Affects Versions: 3.0.0
            Reporter: Alexander Kolbasov

ALTER TABLE handler in HiveAlterHandler has this code:
if (isPartitionedTable) {
  parts = msdb.getPartitions(newt.getDbName(), newt.getTableName(), -1);
          new AddPartitionEvent(newt, parts, true, handler),

The problem is that table may contain huge number of partitions and the event 
will contain all of them. Partition object itself isn't very small either, so 
we may end up with huge events which would be stored and then transmitted over 
the wire to consumers.

[~spena] [~kkalyan] [] [~vaidyand] FYI.

This message was sent by Atlassian JIRA

Reply via email to