{"record":{"id":"83b047f5b645d556","repo":"apache/hadoop","slug":"the-target-file-system-tgtfs-getscheme-d-83b047","errorCode":null,"errorMessage":"The target file system \" + tgtFs.getScheme() + \" does not support getSnapshotDiffReport","messagePattern":"The target file system \" \\+ tgtFs\\.getScheme\\(\\) \\+ \" does not support getSnapshotDiffReport","errorType":"exception","errorClass":"UnsupportedOperationException","httpStatus":null,"severity":"error","filePath":"hadoop-tools/hadoop-distcp/src/main/java/org/apache/hadoop/tools/DistCpSync.java","lineNumber":184,"sourceCode":"    }\n    if (!tgtFs.hasPathCapability(targetDir,\n        CommonPathCapabilities.FS_SNAPSHOTS)) {\n      throw new UnsupportedOperationException(\n          \"The target file system \" + tgtFs.getScheme()\n              + \" does not support snapshot.\");\n    }\n    try {\n      getSnapshotDiffReportMethod(srcFs);\n    } catch (NoSuchMethodException e) {\n      throw new UnsupportedOperationException(\n          \"The source file system \" + srcFs.getScheme()\n              + \" does not support getSnapshotDiffReport\",\n          e);\n    }\n    try {\n      getSnapshotDiffReportMethod(tgtFs);\n    } catch (NoSuchMethodException e) {\n      throw new UnsupportedOperationException(\n          \"The target file system \" + tgtFs.getScheme()\n              + \" does not support getSnapshotDiffReport\",\n          e);\n    }\n\n  }\n\n  public boolean sync() throws IOException {\n    if (!preSyncCheck()) {\n      return false;\n    }\n\n    if (!getAllDiffs()) {\n      return false;\n    }\n\n    List<Path> sourcePaths = context.getSourcePaths();\n    final Path sourceDir = sourcePaths.get(0);","sourceCodeStart":166,"sourceCodeEnd":202,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-tools/hadoop-distcp/src/main/java/org/apache/hadoop/tools/DistCpSync.java#L166-L202","documentation":"Error \"The target file system \" + tgtFs.getScheme() + \" does not support getSnapshotDiffReport\" thrown in apache/hadoop.","triggerScenarios":"The target filesystem does not implement getSnapshotDiffReport.","commonSituations":"See trigger scenarios.","solutions":["Use a target filesystem that supports getSnapshotDiffReport (HDFS).","Disable diff-based sync for this target."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2add9630210752f88ceb1bb74eb65e37bf41da8e","analyzedAt":"2026-08-22T19:55:07.957Z","schemaVersion":2},"datasetVersion":"2026-08-22T20:17:22.307Z"}