Yongjun Zhang created HDFS-11706: ------------------------------------ Summary: Enable fallback to regular distcp when distcp failed with snapshot diff Key: HDFS-11706 URL: https://issues.apache.org/jira/browse/HDFS-11706 Project: Hadoop HDFS Issue Type: Improvement Reporter: Yongjun Zhang
When snapshot based distcp failed (-diff), it used to fallback to regular distcp. However, the fallback was disabled by HDFS-10313, for couple of reasons: # Safety reason. For example, if user passed wrong parameter to the command (especially snapshot name), the sync step could fail. # -diff doesn't allow -delete option, which means, even if we fallback to regular distcp, distcp doesn't know whether -delete should be applied. There are two possible approaches to solve this problem: * introduce a new command line switch, to tell the fallback run whether to enable -delete * let the command line option parser to remember whether -delete was passed initially. If -delete was passed, disable -delete when -diff is passed, then re-enable -delete when fallback. This jira is to implement one of these approaches. This applies to -rdiff too. -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org