apache/hadoop · error · IOException
<typeQuota> was missing <type>
Error message
<typeQuota> was missing <type>
What it means
Error "<typeQuota> was missing <type>" thrown in apache/hadoop.
Source
Thrown at hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/offlineImageViewer/OfflineImageReconstructor.java:811
if (acls != null) {
bld.setAcl(aclXmlToProto(acls));
}
Node xattrs = node.removeChild(INODE_SECTION_XATTRS);
if (xattrs != null) {
bld.setXAttrs(xattrsXmlToProto(xattrs));
}
INodeSection.QuotaByStorageTypeFeatureProto.Builder qf =
INodeSection.QuotaByStorageTypeFeatureProto.newBuilder();
while (true) {
Node typeQuota = node.removeChild(INODE_SECTION_TYPE_QUOTA);
if (typeQuota == null) {
break;
}
INodeSection.QuotaByStorageTypeEntryProto.Builder qbld =
INodeSection.QuotaByStorageTypeEntryProto.newBuilder();
String type = typeQuota.removeChildStr(INODE_SECTION_TYPE);
if (type == null) {
throw new IOException("<typeQuota> was missing <type>");
}
HdfsProtos.StorageTypeProto storageType =
HdfsProtos.StorageTypeProto.valueOf(type);
if (storageType == null) {
throw new IOException("<typeQuota> had unknown <type> " + type);
}
qbld.setStorageType(storageType);
Long quota = typeQuota.removeChildLong(INODE_SECTION_QUOTA);
if (quota == null) {
throw new IOException("<typeQuota> was missing <quota>");
}
qbld.setQuota(quota);
qf.addQuotas(qbld);
}
bld.setTypeQuotas(qf);
return bld;
}
View on GitHub (pinned to 2add963021)
Solutions
- Add the missing <type> element inside the <typeQuota> stanza (valid values: DISK, SSD, ARCHIVE, PROVIDED, NVDIMM).
- Regenerate the fsimage XML with 'hdfs oiv' from a valid fsimage.
When it happens
Trigger: Thrown by oiv -r when a <typeQuota> stanza in a directory inode lacks the <type> element identifying the storage type the quota applies to.
Common situations: See trigger scenarios.
AI-assisted analysis of apache/hadoop@2add963021 (2026-08-22).
Data as JSON: /api/errors/f7a48ad54ce7a26d.
Report an issue: GitHub.