Skip to content

Commit

Permalink
HBASE-28656 Optimize the verifyCopyResult logic in ExportSnapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
2005hithlj committed Jun 19, 2024
1 parent c98bb84 commit 1769dd3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ private void verifyCopyResult(final FileStatus inputStat, final FileStatus outpu
String inputScheme = inputFs.getScheme();
String outputScheme = outputFs.getScheme();
if (!inputScheme.equals(outputScheme)) {
errMessage.append("Input and output filesystems are of different types.\n")
errMessage.append(" Input and output filesystems are of different types.\n")
.append("Their checksum algorithms may be incompatible.");
addSkipHint = true;
} else if (inputStat.getBlockSize() != outputStat.getBlockSize()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ protected static void testExportFileSystemState(final Configuration conf,
if (resetTtl) {
opts.add("--reset-ttl");
}
opts.add("--no-checksum-verify");

// Export Snapshot
int res = run(conf, new ExportSnapshot(), opts.toArray(new String[opts.size()]));
Expand Down

0 comments on commit 1769dd3

Please sign in to comment.