{"record":{"id":"8b00852dc0ce49e1","repo":"apache/hadoop","slug":"incompatible-bcfile-filebcfileversion","errorCode":null,"errorMessage":"Incompatible BCFile fileBCFileVersion.","messagePattern":"Incompatible BCFile fileBCFileVersion\\.","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/file/tfile/BCFile.java","lineNumber":634,"sourceCode":"     * @param fileLength\n     *          Length of the corresponding file\n     * @throws IOException\n     */\n    public Reader(FSDataInputStream fin, long fileLength, Configuration conf)\n        throws IOException {\n      this.in = fin;\n      this.conf = conf;\n\n      // move the cursor to the beginning of the tail, containing: offset to the\n      // meta block index, version and magic\n      fin.seek(fileLength - Magic.size() - Version.size() - Long.SIZE\n          / Byte.SIZE);\n      long offsetIndexMeta = fin.readLong();\n      version = new Version(fin);\n      Magic.readAndVerify(fin);\n\n      if (!version.compatibleWith(BCFile.API_VERSION)) {\n        throw new RuntimeException(\"Incompatible BCFile fileBCFileVersion.\");\n      }\n\n      // read meta index\n      fin.seek(offsetIndexMeta);\n      metaIndex = new MetaIndex(fin);\n\n      // read data:BCFile.index, the data block index\n      try (BlockReader blockR = getMetaBlock(DataIndex.BLOCK_NAME)) {\n        dataIndex = new DataIndex(blockR);\n      }\n    }\n\n    /**\n     * Get the name of the default compression algorithm.\n     * \n     * @return the name of the default compression algorithm.\n     */\n    public String getDefaultCompressionName() {","sourceCodeStart":616,"sourceCodeEnd":652,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/file/tfile/BCFile.java#L616-L652","documentation":"Error \"Incompatible BCFile fileBCFileVersion.\" thrown in apache/hadoop.","triggerScenarios":"Thrown at hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/file/tfile/BCFile.java:634 when the library encounters an invalid state.","commonSituations":"Occurs when reading a BCFile whose version is not supported by this reader. Ensure the file was written by a compatible Hadoop version.","solutions":["The file was written by an incompatible BCFile version; read it with the matching Hadoop version or rewrite it."],"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"}