[ https://issues.apache.org/jira/browse/HDFS-10313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15250521#comment-15250521 ]
Yongjun Zhang commented on HDFS-10313: -------------------------------------- BTW, there is a method {{getSourceSnapshotPath(Path sourceDir, String snapshotName)}} you can use to replace two lines of code that compute snapshot path. > Distcp does not check the order of snapshot names passed to -diff > ----------------------------------------------------------------- > > Key: HDFS-10313 > URL: https://issues.apache.org/jira/browse/HDFS-10313 > Project: Hadoop HDFS > Issue Type: Bug > Components: distcp > Reporter: Yongjun Zhang > Assignee: Lin Yiqun > Attachments: HDFS-10313.001.patch > > > This jira is to propose adding a check to distcp, when {{-diff s1 s2}} is > passed, we need to ensure that s2 is newer than s1, otherwise, abort with a > informative error message. > This is the result of my offline discussion with [~jingzhao] on HDFS-9820. > Thanks Jing. -- This message was sent by Atlassian JIRA (v6.3.4#6332)