{"record":{"id":"7c06a294c23c8a0d","repo":"apache/hadoop","slug":"invalid-router-entry-no-address-specified","errorCode":null,"errorMessage":"Invalid router entry, no address specified {}","messagePattern":"Invalid router entry, no address specified (.+?)","errorType":"validation","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/store/records/RouterState.java","lineNumber":141,"sourceCode":"\n  @Override\n  public String toString() {\n    return getAddress() + \" -> \" + getStatus() + \",\" + getVersion();\n  }\n\n  @Override\n  public SortedMap<String, String> getPrimaryKeys() {\n    SortedMap<String, String> map = new TreeMap<>();\n    map.put(\"address\", getAddress());\n    return map;\n  }\n\n  @Override\n  public void validate() {\n    super.validate();\n    if ((getAddress() == null || getAddress().length() == 0) &&\n        getStatus() != RouterServiceState.INITIALIZING) {\n      throw new IllegalArgumentException(\n          \"Invalid router entry, no address specified \" + this);\n    }\n  }\n\n  @Override\n  public int compareTo(BaseRecord other) {\n    if (other == null) {\n      return -1;\n    } else if (other instanceof RouterState) {\n      RouterState router = (RouterState) other;\n      return this.getAddress().compareTo(router.getAddress());\n    } else {\n      return super.compareTo(other);\n    }\n  }\n\n  @Override\n  public boolean checkExpired(long currentTime) {","sourceCodeStart":123,"sourceCodeEnd":159,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/store/records/RouterState.java#L123-L159","documentation":"Error \"Invalid router entry, no address specified {}\" thrown in apache/hadoop.","triggerScenarios":"RouterState record validation: the router address field is null or empty.","commonSituations":"Corrupted router registration in the State Store or a Router that registered before resolving its address.","solutions":["Ensure the Router registration includes its RPC/web address before being stored.","Check Router startup logs for address binding failures that left the address unset."],"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"}