{"record":{"id":"174e9695e616f37a","repo":"apache/hadoop","slug":"mount-table-mounttablename-has-already-been-conf-174e96","errorCode":null,"errorMessage":"Mount table {mountTableName} has already been configured with regular links. A merge slash link should not be configured.","messagePattern":"Mount table (.+?) has already been configured with regular links\\. A merge slash link should not be configured\\.","errorType":"validation","errorClass":"IOException","httpStatus":null,"severity":"error","filePath":"hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/InodeTree.java","lineNumber":705,"sourceCode":"        // ignore - we set home dir from config\n        continue;\n      } else {\n        throw new IOException(\"ViewFs: Cannot initialize: Invalid entry in \" +\n            \"Mount table in config: \" + src);\n      }\n\n      final String target = si.getValue();\n      if (linkType != LinkType.MERGE_SLASH) {\n        if (isMergeSlashConfigured) {\n          throw new IOException(\"Mount table \" + mountTableName\n              + \" has already been configured with a merge slash link. \"\n              + \"A regular link should not be added.\");\n        }\n        linkEntries.add(\n            new LinkEntry(src, target, linkType, settings, ugi, config));\n      } else {\n        if (!linkEntries.isEmpty()) {\n          throw new IOException(\"Mount table \" + mountTableName\n              + \" has already been configured with regular links. \"\n              + \"A merge slash link should not be configured.\");\n        }\n        if (isMergeSlashConfigured) {\n          throw new IOException(\"Mount table \" + mountTableName\n              + \" has already been configured with a merge slash link. \"\n              + \"Multiple merge slash links for the same mount table is \"\n              + \"not allowed.\");\n        }\n        isMergeSlashConfigured = true;\n        mergeSlashTarget = target;\n      }\n    } // End of for loop.\n\n    if (isMergeSlashConfigured) {\n      Preconditions.checkNotNull(mergeSlashTarget);\n      root = new INodeLink<T>(mountTableName, ugi,\n          initAndGetTargetFs(), mergeSlashTarget);","sourceCodeStart":687,"sourceCodeEnd":723,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/InodeTree.java#L687-L723","documentation":"Error \"Mount table {mountTableName} has already been configured with regular links. A merge slash link should not be configured.\" thrown in apache/hadoop.","triggerScenarios":"Thrown during ViewFs mount table initialization when a merge-slash link is configured for a mount table that already has regular links; the two link types cannot be mixed.","commonSituations":"See trigger scenarios.","solutions":["Do not configure a merge slash link for a mount table that already has regular links.","Replace the regular links with linkMergeSlash, or drop the merge slash entry."],"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"}