Adding consistency check at jobClose() when committing dynamic partitions
-------------------------------------------------------------------------

                 Key: HIVE-1655
                 URL: https://issues.apache.org/jira/browse/HIVE-1655
             Project: Hadoop Hive
          Issue Type: Improvement
            Reporter: Ning Zhang
            Assignee: Ning Zhang


In case of dynamic partition insert, FileSinkOperator generated a directory for 
a new partition and the files in the directory is named with '_tmp*'. When a 
task succeed, the file is renamed to remove the "_tmp", which essentially 
implement the "commit" semantics. A lot of exceptions could happen (process got 
killed, machine dies etc.) could left the _tmp files exist in the DP directory. 
These _tmp files should be deleted ("rolled back") at successful jobClose(). 
After the deletion, we should also delete any empty directories.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to