{"record":{"id":"7ea84758695af1b3","repo":"apache/hadoop","slug":"input-snapshot-is-not-found","errorCode":null,"errorMessage":"Input snapshot is not found","messagePattern":"Input snapshot is not found","errorType":"exception","errorClass":"InvalidInputException","httpStatus":null,"severity":"error","filePath":"hadoop-tools/hadoop-distcp/src/main/java/org/apache/hadoop/tools/DistCpSync.java","lineNumber":150,"sourceCode":"      if (isRdiff()) {\n        // If fromSnapshot isn't current dir then do a time check\n        if (!from.equals(\"\")\n            && fromSnapshotStat.getModificationTime() < toSnapshotStat\n            .getModificationTime()) {\n          throw new HadoopIllegalArgumentException(\"Snapshot \" + from\n              + \" should be newer than \" + to);\n        }\n      } else {\n        // If toSnapshot isn't current dir then do a time check\n        if(!to.equals(\"\")\n            && fromSnapshotStat.getModificationTime() > toSnapshotStat\n            .getModificationTime()) {\n          throw new HadoopIllegalArgumentException(\"Snapshot \" + to\n              + \" should be newer than \" + from);\n        }\n      }\n    } catch (FileNotFoundException nfe) {\n      throw new InvalidInputException(\"Input snapshot is not found\", nfe);\n    }\n\n    return true;\n  }\n\n  /**\n   * Check if the source and target filesystems support snapshots.\n   */\n  private void checkFilesystemSupport(Path sourceDir, Path targetDir,\n      FileSystem srcFs, FileSystem tgtFs) throws IOException {\n    if (!srcFs.hasPathCapability(sourceDir,\n        CommonPathCapabilities.FS_SNAPSHOTS)) {\n      throw new UnsupportedOperationException(\n          \"The source file system \" + srcFs.getScheme()\n              + \" does not support snapshot.\");\n    }\n    if (!tgtFs.hasPathCapability(targetDir,\n        CommonPathCapabilities.FS_SNAPSHOTS)) {","sourceCodeStart":132,"sourceCodeEnd":168,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-tools/hadoop-distcp/src/main/java/org/apache/hadoop/tools/DistCpSync.java#L132-L168","documentation":"Error \"Input snapshot is not found\" thrown in apache/hadoop.","triggerScenarios":"The snapshot named for distcp sync does not exist.","commonSituations":"See trigger scenarios.","solutions":["Verify the named snapshot exists on the source directory.","Create the snapshot before running distcp sync."],"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"}