{"record":{"id":"d53e88ab9124b268","repo":"apache/hadoop","slug":"unknown-type-d53e88","errorCode":null,"errorMessage":"unknown type","messagePattern":"unknown type","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"hadoop-tools/hadoop-streaming/src/main/java/org/apache/hadoop/typedbytes/TypedBytesInput.java","lineNumber":109,"sourceCode":"      return readLong();\n    } else if (code == Type.FLOAT.code) {\n      return readFloat();\n    } else if (code == Type.DOUBLE.code) {\n      return readDouble();\n    } else if (code == Type.STRING.code) {\n      return readString();\n    } else if (code == Type.VECTOR.code) {\n      return readVector();\n    } else if (code == Type.LIST.code) {\n      return readList();\n    } else if (code == Type.MAP.code) {\n      return readMap();\n    } else if (code == Type.MARKER.code) {\n      return null;\n    } else if (50 <= code && code <= 200) { // application-specific typecodes\n      return new Buffer(readBytes());\n    } else {\n      throw new RuntimeException(\"unknown type\");\n    }\n  }\n\n  /**\n   * Reads a typed bytes sequence. The first byte is interpreted as a type code,\n   * and then the right number of subsequent bytes are read depending on the\n   * obtained type.\n   * \n   * @return the obtained typed bytes sequence or null when the end of the file\n   *         is reached\n   * @throws IOException\n   */\n  public byte[] readRaw() throws IOException {\n    int code = -1;\n    try {\n      code = in.readUnsignedByte();\n    } catch (EOFException eof) {\n      return null;","sourceCodeStart":91,"sourceCodeEnd":127,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-tools/hadoop-streaming/src/main/java/org/apache/hadoop/typedbytes/TypedBytesInput.java#L91-L127","documentation":"Error \"unknown type\" thrown in apache/hadoop.","triggerScenarios":"TypedBytesInput reads a type code it does not recognize, indicating corrupted or non-typedbytes data on the stream.","commonSituations":"See trigger scenarios.","solutions":["Check the typedbytes stream; it contains a type code the reader does not recognize, indicating corrupt or misaligned data."],"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"}