From a1a318417105f155ed5c9d34355309775eb43d11 Mon Sep 17 00:00:00 2001 From: Ayush Saxena Date: Wed, 9 Jun 2021 08:04:45 +0530 Subject: [PATCH] HDFS-15916. Addendum. DistCp: Backward compatibility: Distcp fails from Hadoop 3 to Hadoop 2 for snapshotdiff. (#3056) --- .../java/org/apache/hadoop/hdfs/DistributedFileSystem.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DistributedFileSystem.java b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DistributedFileSystem.java index eda92be12c..e67a4fa7d6 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DistributedFileSystem.java +++ b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DistributedFileSystem.java @@ -2395,7 +2395,8 @@ private SnapshotDiffReport getSnapshotDiffReportInternal( } catch (RpcNoSuchMethodException e) { // In case the server doesn't support getSnapshotDiffReportListing, // fallback to getSnapshotDiffReport. - LOG.warn("Falling back to getSnapshotDiffReport {}", e.getMessage()); + DFSClient.LOG.warn( + "Falling back to getSnapshotDiffReport {}", e.getMessage()); return dfs.getSnapshotDiffReport(snapshotDir, fromSnapshot, toSnapshot); } startPath = report.getLastPath();