You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2021/05/10 11:54:10 UTC

[GitHub] [iceberg] pvary commented on issue #2554: Cannot Drop Table Created with HiveIcebergStorageHandler Enabled but Metadata.json is Missing

pvary commented on issue #2554:
URL: https://github.com/apache/iceberg/issues/2554#issuecomment-836603671


   @RussellSpitzer: How likely is this situation based on your experience?
   
   In Hive we faced similar situation a few times before, for example:
   - Dropping the table and failing to remove the files
    
   Sadly we still do not have a way in Hive to return a warning message along with reporting the success of the drop table operation. What we did in these cases:
   - Log a warn message in the logs, and silently (for the user) drop the metadata and skip the file removal.
   
   This looks like the same solution suggested by @marton-bod, and I think it is much easier to recover from a problem if we follow this way. It is easier to drop the remaining data from the Iceberg table later, than recreating the appropriate files just so the metadata could be deleted as well.
   
   Thanks,
   Peter


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org