Github user zhangh43 commented on the pull request:
https://github.com/apache/incubator-hawq/pull/679#issuecomment-222203807
The main hawq register steps are as follows:
get_files_in_hdfs(filepath)
check_parquet_format(options, files)
firstsegno = get_metadata_from_database(options, databasename, seg_name)
move_files_in_hdfs(options, databasename, tablename, files, firstsegno,
True)
insert_metadata_into_database(options, databasename, tablename, seg_name,
firstsegno, sizes)
I have a question what will happen when one of some steps fails. E.g. hdfs
files have been moved, but insert metadata failed, should we restore the moved
data?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---