{"record":{"id":"265824b645f6d5cf","repo":"apache/hadoop","slug":"corrupted-meta-region-index","errorCode":null,"errorMessage":"Corrupted Meta region Index","messagePattern":"Corrupted Meta region Index","errorType":"exception","errorClass":"IOException","httpStatus":null,"severity":"error","filePath":"hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/file/tfile/BCFile.java","lineNumber":820,"sourceCode":"\n  /**\n   * An entry describes a meta block in the MetaIndex.\n   */\n  static final class MetaIndexEntry {\n    private final String metaName;\n    private final Algorithm compressionAlgorithm;\n    private final static String defaultPrefix = \"data:\";\n\n    private final BlockRegion region;\n\n    public MetaIndexEntry(DataInput in) throws IOException {\n      String fullMetaName = Utils.readString(in, MAX_META_STRING_LENGTH);\n      if (fullMetaName.startsWith(defaultPrefix)) {\n        metaName =\n            fullMetaName.substring(defaultPrefix.length(), fullMetaName\n                .length());\n      } else {\n        throw new IOException(\"Corrupted Meta region Index\");\n      }\n\n      compressionAlgorithm =\n          Compression.getCompressionAlgorithmByName(\n              Utils.readString(in, MAX_META_STRING_LENGTH));\n      region = new BlockRegion(in);\n    }\n\n    public MetaIndexEntry(String metaName, Algorithm compressionAlgorithm,\n        BlockRegion region) {\n      this.metaName = metaName;\n      this.compressionAlgorithm = compressionAlgorithm;\n      this.region = region;\n    }\n\n    public String getMetaName() {\n      return metaName;\n    }","sourceCodeStart":802,"sourceCodeEnd":838,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/file/tfile/BCFile.java#L802-L838","documentation":"Error \"Corrupted Meta region Index\" thrown in apache/hadoop.","triggerScenarios":"Thrown at hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/file/tfile/BCFile.java:820 when the library encounters an invalid state.","commonSituations":"Occurs when the BCFile meta region index is malformed, indicating a corrupt or truncated file. Verify file integrity before reading.","solutions":["The meta region index is corrupted; restore the file from a good copy."],"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"}