{"record":{"id":"1c16254dc034f19a","repo":"apache/hadoop","slug":"unsupported-version-ver","errorCode":null,"errorMessage":"Unsupported version: <ver>","messagePattern":"Unsupported version: <ver>","errorType":"exception","errorClass":"IOException","httpStatus":null,"severity":"error","filePath":"hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/bloom/Filter.java","lineNumber":214,"sourceCode":"  @Override\n  public void write(DataOutput out) throws IOException {\n    out.writeInt(VERSION);\n    out.writeInt(this.nbHash);\n    out.writeByte(this.hashType);\n    out.writeInt(this.vectorSize);\n  }\n\n  @Override\n  public void readFields(DataInput in) throws IOException {\n    int ver = in.readInt();\n    if (ver > 0) { // old unversioned format\n      this.nbHash = ver;\n      this.hashType = Hash.JENKINS_HASH;\n    } else if (ver == VERSION) {\n      this.nbHash = in.readInt();\n      this.hashType = in.readByte();\n    } else {\n      throw new IOException(\"Unsupported version: \" + ver);\n    }\n    this.vectorSize = in.readInt();\n    this.hash = new HashFunction(this.vectorSize, this.nbHash, this.hashType);\n  }\n}//end class\n","sourceCodeStart":196,"sourceCodeEnd":220,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/bloom/Filter.java#L196-L220","documentation":"Error \"Unsupported version: <ver>\" thrown in apache/hadoop.","triggerScenarios":"Thrown at hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/bloom/Filter.java:214 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["The serialized filter has version <ver>, which this code cannot read. Rewrite the filter with a compatible version, or upgrade the reader to support that version."],"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"}