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

dropTable will all ways excute hook.rollbackDropTable whether drop table success or faild.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.10.0
    • Metastore
    • None

    Description

      see the codes:
      boolean success = false;
      try {
      client.drop_table(dbname, name, deleteData);
      if (hook != null)

      { hook.commitDropTable(tbl, deleteData); }

      } catch (NoSuchObjectException e) {
      if (!ignoreUknownTab)

      { throw e; }

      } finally {
      if (!success && (hook != null))

      { hook.rollbackDropTable(tbl); }

      }

      success will always false, whether the drop was success or faild.
      so it's a bug.

      Attachments

        1. HIVE-3101.1.patch
          0.6 kB
          Zhiqiang He

        Activity

          People

            ransom Zhiqiang He
            ransom Zhiqiang He
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: