{"record":{"id":"0e2badb9f5b13120","repo":"apache/hadoop","slug":"inode-does-not-exist-for-name","errorCode":null,"errorMessage":"\"INode does not exist for \" + name","messagePattern":"\"INode does not exist for \" \\+ name","errorType":"exception","errorClass":"FileNotFoundException","httpStatus":null,"severity":"error","filePath":"hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/EncryptionZoneManager.java","lineNumber":757,"sourceCode":"        break;\n      }\n    }\n    final boolean hasMore = (numResp < tailMap.size());\n    return new BatchedListEntries<>(ret, hasMore);\n  }\n\n  /**\n   * Return whether an INode is an encryption zone root.\n   * @param inode of the encryption zone inode\n   * @param name the path name of the encrypted zone inode\n   * @return true when INode is an encryption zone root else false\n   * @throws FileNotFoundException\n   */\n  boolean isEncryptionZoneRoot(final INode inode, final String name)\n      throws FileNotFoundException {\n    assert dir.hasReadLock();\n    if (inode == null) {\n      throw new FileNotFoundException(\"INode does not exist for \" + name);\n    }\n    if (!inode.isDirectory()) {\n      return false;\n    }\n    if (!hasCreatedEncryptionZone()\n        || !encryptionZones.containsKey(inode.getId())) {\n      return false;\n    }\n    return true;\n  }\n\n  /**\n   * Return whether an INode is an encryption zone root.\n   *\n   * @param inode the zone inode\n   * @param name the path name of the encrypted zone inode\n   * @throws IOException if the inode is not a directory,\n   *                     or is a directory but not the root of an EZ.","sourceCodeStart":739,"sourceCodeEnd":775,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/EncryptionZoneManager.java#L739-L775","documentation":"Error \"\"INode does not exist for \" + name\" thrown in apache/hadoop.","triggerScenarios":"getEZForPath/re-encryption lookup for a path whose inode no longer exists.","commonSituations":"See trigger scenarios.","solutions":["Verify the path exists in HDFS before operating on the encryption zone; correct the path name."],"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"}