{"record":{"id":"7ce05df587121ff6","repo":"apache/hadoop","slug":"unknown-type","errorCode":null,"errorMessage":"Unknown type: ","messagePattern":"Unknown type: ","errorType":"exception","errorClass":"IllegalStateException","httpStatus":null,"severity":"error","filePath":"hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/protocolPB/PBHelper.java","lineNumber":89,"sourceCode":"      symlink = new Path(proto.getSymlink());\n      blocksize = 0;\n      length = 0;\n      blockReplication = 0;\n      break;\n    case FT_FILE:\n      isdir = false;\n      symlink = null;\n      blocksize = proto.getBlockSize();\n      length = proto.getLength();\n      int brep = proto.getBlockReplication();\n      if ((brep & 0xffff0000) != 0) {\n        throw new IOException(String.format(\"Block replication 0x%08x \" +\n            \"doesn't fit in 16 bits.\", brep));\n      }\n      blockReplication = (short)brep;\n      break;\n    default:\n      throw new IllegalStateException(\"Unknown type: \" + proto.getFileType());\n    }\n    path = new Path(proto.getPath());\n    mtime = proto.getModificationTime();\n    atime = proto.getAccessTime();\n    permission = convert(proto.getPermission());\n    owner = StringInterner.weakIntern(proto.getOwner());\n    group = StringInterner.weakIntern(proto.getGroup());\n    int flags = proto.getFlags();\n    FileStatus fileStatus = new FileStatus(length, isdir, blockReplication,\n        blocksize, mtime, atime, permission, owner, group, symlink, path,\n        FileStatus.attributes(\n          (flags & FileStatusProto.Flags.HAS_ACL_VALUE) != 0,\n          (flags & FileStatusProto.Flags.HAS_CRYPT_VALUE) != 0,\n          (flags & FileStatusProto.Flags.HAS_EC_VALUE) != 0,\n          (flags & FileStatusProto.Flags.SNAPSHOT_ENABLED_VALUE) != 0));\n    return fileStatus;\n  }\n","sourceCodeStart":71,"sourceCodeEnd":107,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/protocolPB/PBHelper.java#L71-L107","documentation":"Error \"Unknown type: \" thrown in apache/hadoop.","triggerScenarios":"Thrown in PBHelper.convert when an unrecognized block type value is encountered during protobuf conversion.","commonSituations":"See trigger scenarios.","solutions":["Pass a recognized enum/type value; the received type is unknown to PBHelper.","Check that client and server versions agree on the enum values being converted."],"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"}