{"record":{"id":"981588880a34fe9a","repo":"apache/hadoop","slug":"typequota-had-unknown-type-type","errorCode":null,"errorMessage":"<typeQuota> had unknown <type> {type}","messagePattern":"<typeQuota> had unknown <type> (.+?)","errorType":"exception","errorClass":"IOException","httpStatus":null,"severity":"error","filePath":"hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/offlineImageViewer/OfflineImageReconstructor.java","lineNumber":816,"sourceCode":"      bld.setXAttrs(xattrsXmlToProto(xattrs));\n    }\n    INodeSection.QuotaByStorageTypeFeatureProto.Builder qf =\n        INodeSection.QuotaByStorageTypeFeatureProto.newBuilder();\n    while (true) {\n      Node typeQuota = node.removeChild(INODE_SECTION_TYPE_QUOTA);\n      if (typeQuota == null) {\n        break;\n      }\n      INodeSection.QuotaByStorageTypeEntryProto.Builder qbld =\n          INodeSection.QuotaByStorageTypeEntryProto.newBuilder();\n      String type = typeQuota.removeChildStr(INODE_SECTION_TYPE);\n      if (type == null) {\n        throw new IOException(\"<typeQuota> was missing <type>\");\n      }\n      HdfsProtos.StorageTypeProto storageType =\n          HdfsProtos.StorageTypeProto.valueOf(type);\n      if (storageType == null) {\n        throw new IOException(\"<typeQuota> had unknown <type> \" + type);\n      }\n      qbld.setStorageType(storageType);\n      Long quota = typeQuota.removeChildLong(INODE_SECTION_QUOTA);\n      if (quota == null) {\n        throw new IOException(\"<typeQuota> was missing <quota>\");\n      }\n      qbld.setQuota(quota);\n      qf.addQuotas(qbld);\n    }\n    bld.setTypeQuotas(qf);\n    return bld;\n  }\n\n  private void processSymlinkXml(Node node,\n                                 INodeSection.INode.Builder inodeBld) throws IOException {\n    inodeBld.setType(INodeSection.INode.Type.SYMLINK);\n    INodeSection.INodeSymlink.Builder bld =\n        INodeSection.INodeSymlink.newBuilder();","sourceCodeStart":798,"sourceCodeEnd":834,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/offlineImageViewer/OfflineImageReconstructor.java#L798-L834","documentation":"Error \"<typeQuota> had unknown <type> {type}\" thrown in apache/hadoop.","triggerScenarios":"Thrown by oiv -r when a <typeQuota> stanza contains a <type> value that is not a valid StorageType.","commonSituations":"See trigger scenarios.","solutions":["Correct the <type> value in <typeQuota> to a known storage type (DISK, SSD, ARCHIVE, PROVIDED, NVDIMM).","Regenerate the fsimage XML with a version of 'hdfs oiv' that supports the storage types in use."],"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"}