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

Metastore should throw exception back if it is not able to delete the folder

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • None
    • None
    • Metastore
    • None

    Description

      https://github.com/apache/hive/blob/master/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java#L2678

       

      In one of the cases, table got deleted from HMS, but the data was not deleted. On looking at the issue, `deleteDir` is not throwing the exception back.  Real exception gets logged (in this case it was user quota limit exceeeded exception), but the managed table gets dropped without deleting the data. "alter table rename" after this would fail as the data is not deleted.

      Attachments

        Activity

          People

            rajesh.balamohan Rajesh Balamohan
            rajesh.balamohan Rajesh Balamohan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: