{"record":{"id":"432047581ad9741d","repo":"apache/hadoop","slug":"invalid-empty-pool-name","errorCode":null,"errorMessage":"Invalid empty pool name.","messagePattern":"Invalid empty pool name\\.","errorType":"exception","errorClass":"InvalidRequestException","httpStatus":null,"severity":"error","filePath":"hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/CacheManager.java","lineNumber":373,"sourceCode":"  }\n\n  // Helper getter / validation methods\n\n  private static void checkWritePermission(FSPermissionChecker pc,\n      CachePool pool) throws AccessControlException {\n    if ((pc != null)) {\n      pc.checkPermission(pool, FsAction.WRITE);\n    }\n  }\n\n  private static String validatePoolName(CacheDirectiveInfo directive)\n      throws InvalidRequestException {\n    String pool = directive.getPool();\n    if (pool == null) {\n      throw new InvalidRequestException(\"No pool specified.\");\n    }\n    if (pool.isEmpty()) {\n      throw new InvalidRequestException(\"Invalid empty pool name.\");\n    }\n    return pool;\n  }\n\n  private static String validatePath(CacheDirectiveInfo directive)\n      throws InvalidRequestException {\n    if (directive.getPath() == null) {\n      throw new InvalidRequestException(\"No path specified.\");\n    }\n    String path = directive.getPath().toUri().getPath();\n    if (!DFSUtil.isValidName(path)) {\n      throw new InvalidRequestException(\"Invalid path '\" + path + \"'.\");\n    }\n    return path;\n  }\n\n  private static short validateReplication(CacheDirectiveInfo directive,\n      short defaultValue) throws InvalidRequestException {","sourceCodeStart":355,"sourceCodeEnd":391,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/CacheManager.java#L355-L391","documentation":"Error \"Invalid empty pool name.\" thrown in apache/hadoop.","triggerScenarios":"addCacheDirective with an empty pool name string.","commonSituations":"See trigger scenarios.","solutions":["Provide a non-empty cache pool name; check for empty quotes in the command or API call."],"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"}