Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-18942

ALTER TABLE may generate huge event (with all partitions)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.0.0
    • None
    • Metastore
    • None

    Description

      ALTER TABLE handler in HiveAlterHandler has this code:

      if (isPartitionedTable) {
        parts = msdb.getPartitions(newt.getDbName(), newt.getTableName(), -1);
        MetaStoreListenerNotifier.notifyEvent(transactionalListeners,
                EventMessage.EventType.ADD_PARTITION,
                new AddPartitionEvent(newt, parts, true, handler),
                environmentContext);
      }

      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 lina.li vaidyand FYI.

      Attachments

        Activity

          People

            Unassigned Unassigned
            akolb Alex Kolbasov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: