{"record":{"id":"d89bb22839b0c6d9","repo":"apache/hadoop","slug":"unknown-version-of-delegation-token-version","errorCode":null,"errorMessage":"Unknown version of delegation token {version}","messagePattern":"Unknown version of delegation token (.+?)","errorType":"exception","errorClass":"IOException","httpStatus":null,"severity":"error","filePath":"hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/AbstractDelegationTokenIdentifier.java","lineNumber":193,"sourceCode":"          && this.maxDate == that.maxDate\n          && this.masterKeyId == that.masterKeyId\n          && isEqual(this.owner, that.owner) \n          && isEqual(this.renewer, that.renewer)\n          && isEqual(this.realUser, that.realUser);\n    }\n    return false;\n  }\n\n  @Override\n  public int hashCode() {\n    return this.sequenceNumber;\n  }\n  \n  @Override\n  public void readFields(DataInput in) throws IOException {\n    byte version = in.readByte();\n    if (version != VERSION) {\n\tthrow new IOException(\"Unknown version of delegation token \" + \n                              version);\n    }\n    owner.readFields(in, Text.DEFAULT_MAX_LEN);\n    renewer.readFields(in, Text.DEFAULT_MAX_LEN);\n    realUser.readFields(in, Text.DEFAULT_MAX_LEN);\n    issueDate = WritableUtils.readVLong(in);\n    maxDate = WritableUtils.readVLong(in);\n    sequenceNumber = WritableUtils.readVInt(in);\n    masterKeyId = WritableUtils.readVInt(in);\n  }\n\n  @VisibleForTesting\n  void writeImpl(DataOutput out) throws IOException {\n    out.writeByte(VERSION);\n    owner.write(out);\n    renewer.write(out);\n    realUser.write(out);\n    WritableUtils.writeVLong(out, issueDate);","sourceCodeStart":175,"sourceCodeEnd":211,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/AbstractDelegationTokenIdentifier.java#L175-L211","documentation":"Error \"Unknown version of delegation token {version}\" thrown in apache/hadoop.","triggerScenarios":"Thrown at hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/AbstractDelegationTokenIdentifier.java:193 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["The serialized token was written with version {version}, which this client does not understand. Upgrade the client to a version that supports this token wire version, or re-issue the token from a compatible service."],"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"}