{"record":{"id":"ced21a2173553ec6","repo":"apache/hadoop","slug":"typequota-was-missing-quota","errorCode":null,"errorMessage":"<typeQuota> was missing <quota>","messagePattern":"<typeQuota> was missing <quota>","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":821,"sourceCode":"      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();\n    String perm = node.removeChildStr(INODE_SECTION_PERMISSION);\n    if (perm != null) {\n      bld.setPermission(permissionXmlToU64(perm));\n    }\n    String target = node.removeChildStr(INODE_SECTION_TARGET);","sourceCodeStart":803,"sourceCodeEnd":839,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/offlineImageViewer/OfflineImageReconstructor.java#L803-L839","documentation":"Error \"<typeQuota> was missing <quota>\" thrown in apache/hadoop.","triggerScenarios":"Thrown by oiv -r when a <typeQuota> stanza lacks the <quota> element holding the quota value.","commonSituations":"See trigger scenarios.","solutions":["Add the missing <quota> element to the <typeQuota> stanza in the fsimage XML.","Regenerate the fsimage XML with 'hdfs oiv' from a valid fsimage."],"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"}