aasha commented on a change in pull request #2539:
URL: https://github.com/apache/hive/pull/2539#discussion_r690179615
##########
File path: ql/src/java/org/apache/hadoop/hive/ql/exec/repl/DirCopyTask.java
##########
@@ -243,18 +244,25 @@ boolean copyUsingDistCpSnapshots(Path sourcePath, Path
targetPath, UserGroupInfo
DistributedFileSystem targetFs = SnapshotUtils.getDFS(targetPath,
clonedConf);
boolean result = false;
+ boolean isSecondSnapshotAvl =
+ SnapshotUtils.isSnapshotAvailable(targetFs, targetPath,
work.getSnapshotPrefix(), NEW_SNAPSHOT, clonedConf);
if
(getWork().getCopyMode().equals(SnapshotUtils.SnapshotCopyMode.DIFF_COPY)) {
+ if(isSecondSnapshotAvl) {
Review comment:
add comments why this is done
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]