{"record":{"id":"98c52ad7876dd1d7","repo":"apache/hadoop","slug":"unknown-type-98c52a","errorCode":null,"errorMessage":"Unknown type: {}","messagePattern":"Unknown type: (.+?)","errorType":"exception","errorClass":"UnsupportedOperationException","httpStatus":null,"severity":"error","filePath":"hadoop-tools/hadoop-fs2img/src/main/java/org/apache/hadoop/hdfs/server/namenode/TreePath.java","lineNumber":110,"sourceCode":"    }\n    return id;\n  }\n\n  public void accept(long pathId) {\n    this.id = pathId;\n    i.onAccept(this, id);\n  }\n\n  public INode toINode(UGIResolver ugi, BlockResolver blk,\n      BlockAliasMap.Writer<FileRegion> out) throws IOException {\n    if (stat.isFile()) {\n      return toFile(ugi, blk, out);\n    } else if (stat.isDirectory()) {\n      return toDirectory(ugi);\n    } else if (stat.isSymlink()) {\n      throw new UnsupportedOperationException(\"symlinks not supported\");\n    } else {\n      throw new UnsupportedOperationException(\"Unknown type: \" + stat);\n    }\n  }\n\n  @Override\n  public boolean equals(Object other) {\n    if (!(other instanceof TreePath)) {\n      return false;\n    }\n    TreePath o = (TreePath) other;\n    return getParentId() == o.getParentId()\n      && getFileStatus().equals(o.getFileStatus());\n  }\n\n  @Override\n  public int hashCode() {\n    long pId = getParentId() * getFileStatus().hashCode();\n    return (int)(pId ^ (pId >>> 32));\n  }","sourceCodeStart":92,"sourceCodeEnd":128,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-tools/hadoop-fs2img/src/main/java/org/apache/hadoop/hdfs/server/namenode/TreePath.java#L92-L128","documentation":"Error \"Unknown type: {}\" thrown in apache/hadoop.","triggerScenarios":"fs2img TreePath encounters an entry type it does not know how to serialize (neither a file, directory, nor symlink), e.g. an unrecognized entry from the input path iteration.","commonSituations":"See trigger scenarios.","solutions":["The fs2img tree walk encountered an inode type it cannot convert; remove or exclude unsupported inode types (e.g. symlinks) from the input tree."],"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-23T01:17:44.959Z"}