Hive
  1. Hive
  2. HIVE-2938

ALTER TABLE ADD IF NOT EXISTS PARTITION is not atomic

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 0.5.0, 0.6.0, 0.7.0, 0.8.0, 0.8.1
    • Fix Version/s: None
    • Component/s: Metastore
    • Labels:
      None

      Issue Links

        Activity

        Hide
        Carl Steinbach added a comment -

        Support for ALTER TABLE ADD IF NOT EXISTS PARTITION was added in HIVE-1106. However, this patch introduced a time-of-check-to-time-of-use bug since the check to see if the partition already exists is done in a transaction separate from the one in which the partition is actually created. We need to provide support for IF NOT EXISTS at the level of the Metastore Thrift API in order to support this correctly.

        Show
        Carl Steinbach added a comment - Support for ALTER TABLE ADD IF NOT EXISTS PARTITION was added in HIVE-1106 . However, this patch introduced a time-of-check-to-time-of-use bug since the check to see if the partition already exists is done in a transaction separate from the one in which the partition is actually created. We need to provide support for IF NOT EXISTS at the level of the Metastore Thrift API in order to support this correctly.

          People

          • Assignee:
            Unassigned
            Reporter:
            Carl Steinbach
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development