{"record":{"id":"edf79e129696ddaa","repo":"apache/hadoop","slug":"no-pool-specified","errorCode":null,"errorMessage":"No pool specified.","messagePattern":"No pool specified\\.","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":370,"sourceCode":"      throw new IOException(\"No more available IDs.\");\n    }\n    return nextDirectiveId++;\n  }\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  }","sourceCodeStart":352,"sourceCodeEnd":388,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/CacheManager.java#L352-L388","documentation":"Error \"No pool specified.\" thrown in apache/hadoop.","triggerScenarios":"addCacheDirective without specifying a cache pool name.","commonSituations":"See trigger scenarios.","solutions":["Specify a cache pool name for the directive with the -pool option of hdfs cacheadmin."],"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"}