{"record":{"id":"445721f8dc3709b8","repo":"apache/hadoop","slug":"invalid-entry-invalid-destination-nameservice","errorCode":null,"errorMessage":"Invalid entry, invalid destination nameservice {}","messagePattern":"Invalid entry, invalid destination nameservice (.+?)","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/MountTable.java","lineNumber":397,"sourceCode":"  @Override\n  public void validate() {\n    super.validate();\n    if (this.getSourcePath() == null || this.getSourcePath().length() == 0) {\n      throw new IllegalArgumentException(\n          ERROR_MSG_NO_SOURCE_PATH + this);\n    }\n    if (!this.getSourcePath().startsWith(\"/\")) {\n      throw new IllegalArgumentException(\n          ERROR_MSG_MUST_START_WITH_BACK_SLASH + this);\n    }\n    if (this.getDestinations() == null || this.getDestinations().size() == 0) {\n      throw new IllegalArgumentException(\n          ERROR_MSG_NO_DEST_PATH_SPECIFIED + this);\n    }\n    for (RemoteLocation loc : getDestinations()) {\n      String nsId = loc.getNameserviceId();\n      if (nsId == null || nsId.length() == 0) {\n        throw new IllegalArgumentException(\n            ERROR_MSG_INVALID_DEST_NS + this);\n      }\n      if (loc.getDest() == null || loc.getDest().length() == 0) {\n        throw new IllegalArgumentException(\n            ERROR_MSG_INVALID_DEST_PATH + this);\n      }\n      if (!loc.getDest().startsWith(\"/\")) {\n        throw new IllegalArgumentException(\n            ERROR_MSG_ALL_DEST_MUST_START_WITH_BACK_SLASH + this);\n      }\n    }\n    if (isFaultTolerant()) {\n      if (getDestinations().size() < 2) {\n        throw new IllegalArgumentException(\n            ERROR_MSG_FAULT_TOLERANT_MULTI_DEST + this);\n      }\n      if (!isAll()) {\n        throw new IllegalArgumentException(","sourceCodeStart":379,"sourceCodeEnd":415,"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/MountTable.java#L379-L415","documentation":"Error \"Invalid entry, invalid destination nameservice {}\" thrown in apache/hadoop.","triggerScenarios":"MountTable validation: a destination entry has a null/empty or invalid nameservice id.","commonSituations":"Mount entry referencing a nameservice that does not exist in the federation configuration.","solutions":["Use a configured, valid nameservice id for the destination (check dfs.nameservices / router nameservice config).","Fix typos in the nameservice id passed to the mount add command."],"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"}