sadanand48 commented on code in PR #5364: URL: https://github.com/apache/hadoop/pull/5364#discussion_r1145254640
########## hadoop-tools/hadoop-distcp/src/main/java/org/apache/hadoop/tools/DistCpSync.java: ########## @@ -161,20 +161,32 @@ private void checkFilesystemSupport(Path sourceDir, Path targetDir, if (!srcFs.hasPathCapability(sourceDir, CommonPathCapabilities.FS_SNAPSHOTS)) { throw new IllegalArgumentException( - "The source file system " + srcFs.getScheme() + " does not support snapshot."); + "The source file system " + srcFs.getScheme() + + " does not support snapshot."); } if (!tgtFs.hasPathCapability(targetDir, CommonPathCapabilities.FS_SNAPSHOTS)) { throw new IllegalArgumentException( - "The target file system " + tgtFs.getScheme() + " does not support snapshot."); + "The target file system " + tgtFs.getScheme() + + " does not support snapshot."); } try { getSnapshotDiffReportMethod(srcFs); + } catch (NoSuchMethodException e) { + throw new IllegalArgumentException( Review Comment: Done. ########## hadoop-tools/hadoop-distcp/src/main/java/org/apache/hadoop/tools/DistCpSync.java: ########## @@ -161,20 +161,32 @@ private void checkFilesystemSupport(Path sourceDir, Path targetDir, if (!srcFs.hasPathCapability(sourceDir, CommonPathCapabilities.FS_SNAPSHOTS)) { throw new IllegalArgumentException( Review Comment: 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: common-issues-unsubscr...@hadoop.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org