{"record":{"id":"b5f1843f9b985160","repo":"apache/hadoop","slug":"path-not-found-b5f184","errorCode":null,"errorMessage":"Path not found: {}","messagePattern":"Path not found: (.+?)","errorType":"exception","errorClass":"FileNotFoundException","httpStatus":null,"severity":"error","filePath":"hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java","lineNumber":8878,"sourceCode":"      writeUnlock(RwLockMode.FS, \"removeXAttr\");\n    }\n    getEditLog().logSync();\n  }\n\n  void checkAccess(String src, FsAction mode) throws IOException {\n    final String operationName = \"checkAccess\";\n    checkOperation(OperationCategory.READ);\n    final FSPermissionChecker pc = getPermissionChecker();\n    FSPermissionChecker.setOperationType(operationName);\n    try {\n      readLock(RwLockMode.FS);\n      try {\n        checkOperation(OperationCategory.READ);\n        final INodesInPath iip = dir.resolvePath(pc, src, DirOp.READ);\n        src = iip.getPath();\n        INode inode = iip.getLastINode();\n        if (inode == null) {\n          throw new FileNotFoundException(\"Path not found: \" + src);\n        }\n        if (isPermissionEnabled) {\n          dir.checkPathAccess(pc, iip, mode);\n        }\n      } finally {\n        readUnlock(RwLockMode.FS, operationName, getLockReportInfoSupplier(src));\n      }\n    } catch (AccessControlException e) {\n      logAuditEvent(false, operationName, src);\n      throw e;\n    }\n    logAuditEvent(true, operationName, src);\n  }\n\n  /**\n   * Check if snapshot roots are created for all existing snapshottable\n   * directories. Create them if not.\n   * Only the active NameNode needs to execute this in HA setup once it is out","sourceCodeStart":8860,"sourceCodeEnd":8896,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java#L8860-L8896","documentation":"Error \"Path not found: {}\" thrown in apache/hadoop.","triggerScenarios":"A snapshot diff or related operation references a path that has been deleted or never existed.","commonSituations":"Running snapshotDiff or restore operations against a removed or mistyped directory.","solutions":["Check that the path exists and is spelled correctly; the operation requires an existing target path."],"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"}